Module: Delighted::Operations::All::ClassMethods

Defined in:
lib/delighted/operations/all.rb

Instance Method Summary collapse

Instance Method Details

#all(opts = {}, client = Delighted.shared_client) ⇒ Object



9
10
11
12
13
# File 'lib/delighted/operations/all.rb', line 9

def all(opts = {}, client = Delighted.shared_client)
  opts = Utils.serialize_values(opts)
  json = client.get_json(path, opts)
  EnumerableResourceCollection.new(json.map { |attributes| new(attributes) })
end