graphql-client icon indicating copy to clipboard operation
graphql-client copied to clipboard

Avoid calling ruby's inbuilt method

Open toneymathews opened this issue 3 years ago • 0 comments

Closes https://github.com/github/graphql-client/issues/300

This PR

  • defines singleton methods on ObjectClass for field definitions whose names match Ruby's built-in method names such as Object#method.
  • adds an allowlist of fields for which we define these methods. Every other field would depend on method_missing to read from the response object.

toneymathews avatar Sep 28 '22 21:09 toneymathews