Method: Postmen::LabelCollection.all

Defined in:
lib/postmen/label_collection.rb

.all(options = {}) ⇒ Object

Fetch all labels.

Examples:

.all # Returns all labels, default query.
.all(status: :cancelled) # Returns only cancelled labels

Parameters:

  • options (Hash) (defaults to: {})

    Options for the query.

See Also:



16
17
18
# File 'lib/postmen/label_collection.rb', line 16

def self.all(options = {})
  new(Connection.new.get('/labels', LabelQuery.new(options).to_query).parsed_response)
end