Module: Arke::Resource::Finders::ClassMethods
- Defined in:
- lib/arke/resource/finders.rb
Instance Method Summary collapse
Instance Method Details
#all(params = {}) ⇒ Object
13 14 15 16 |
# File 'lib/arke/resource/finders.rb', line 13 def all(params={}) body = get(params) self.collection.new(self, body) end |
#find(id, params = {}) ⇒ Object
8 9 10 11 |
# File 'lib/arke/resource/finders.rb', line 8 def find(id, params={}) body = get({id: id}.merge(params)) new(body) end |