Method: Hyperclient::Collection#method_missing
- Defined in:
- lib/hyperclient/collection.rb
#method_missing(method_name, *_args, &_block) ⇒ Object
Provides method access to the collection values.
It allows accessing a value as ‘collection.name` instead of `collection`
77 78 79 80 81 |
# File 'lib/hyperclient/collection.rb', line 77 def method_missing(method_name, *_args, &_block) @collection.fetch(method_name.to_s) do raise "Could not find `#{method_name}` in #{self.class.name}" end end |