googleapis / gapic-generator-ruby

Generate Ruby gRPC client libraries from Protocol Buffer definitions.
Apache License 2.0
45 stars 32 forks source link

fix: Add missing local binding in resource path methods #1117

Closed aandreassa closed 2 months ago

aandreassa commented 2 months ago

Addressing the last part of local binding causing an issue in https://github.com/googleapis/google-cloud-ruby/pull/27013

The name needs to be the original argument name within the string, so I am creating a separate method within the presenter to escape it.

This is part of resource/_def.erb.

Previous implementation in #1110