Module: Layer::Operations::Paginate::ClassMethods

Included in:
Conversation
Defined in:
lib/layer/operations/paginate.rb

Instance Method Summary collapse

Instance Method Details

#all(client = self.client) ⇒ Layer::ResourceCollection

Finds all resources from a paginated endpoint

Parameters:

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

    the client to use to make this request

Returns:

Raises:



11
12
13
# File 'lib/layer/operations/paginate.rb', line 11

def all(client = self.client)
  Layer::ResourceCollection.new(self, client)
end