Module: Layer::Operations::List::ClassMethods

Included in:
Webhook
Defined in:
lib/layer/operations/list.rb

Instance Method Summary collapse

Instance Method Details

#all(client = self.client) ⇒ Enumerable

Finds all resources

Parameters:

  • client (Layer::Client) (defaults to: self.client)

    the client to use to make this request

Returns:

  • (Enumerable)

    the found resources

Raises:



11
12
13
14
# 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