module Layer::Operations::List::ClassMethods

Public Instance Methods

all(client = self.client) click to toggle source

Finds all resources

@param client [Layer::Client] the client to use to make this request @return [Enumerable] the found resources @raise [Layer::Exceptions::Exception] a subclass of Layer::Exceptions::Exception describing the error

# File lib/layer/operations/list.rb, line 11
def all(client = self.client)
  response = client.get(url)
  response.map { |attributes| from_response(attributes, client) }
end