graphql-client
graphql-client copied to clipboard
Avoid calling ruby's inbuilt method
Closes https://github.com/github/graphql-client/issues/300
This PR
- defines singleton methods on
ObjectClassfor field definitions whose names match Ruby's built-in method names such asObject#method. - adds an allowlist of fields for which we define these methods. Every other field would depend on
method_missingto read from the response object.