module Delighted::Operations::All::ClassMethods

Public Instance Methods

all(opts = {}, client = Delighted.shared_client) click to toggle source
# 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