Method: Hyperclient::Link#method_missing
- Defined in:
- lib/hyperclient/link.rb
#method_missing(method, *args, &block) ⇒ Object (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.
Delegate the method further down the API if the resource cannot serve it.
127 128 129 130 131 132 133 134 |
# File 'lib/hyperclient/link.rb', line 127 def method_missing(method, *args, &block) if _resource.respond_to?(method.to_s) result = _resource.send(method, *args, &block) result.nil? ? delegate_method(method, *args, &block) : result else super end end |