Method: Hyperclient::Resource#respond_to_missing?
- Defined in:
- lib/hyperclient/resource.rb
#respond_to_missing?(method, include_private = false) ⇒ Boolean (private)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Accessory method to allow the resource respond to methods that will hit method_missing.
122 123 124 125 126 127 |
# File 'lib/hyperclient/resource.rb', line 122 def respond_to_missing?(method, include_private = false) %i[_attributes _embedded _links].each do |target| return true if send(target).respond_to?(method, include_private) end false end |