module Arke::Resource::Finders::ClassMethods

Public Instance Methods

all(params={}) click to toggle source
# File lib/arke/resource/finders.rb, line 13
def all(params={})
  body = get(params)
  self.collection.new(self, body)
end
find(id, params={}) click to toggle source
# File lib/arke/resource/finders.rb, line 8
def find(id, params={})
  body = get({id: id}.merge(params))
  new(body)
end