Class: Postmen::Label

Inherits:
Dry::Struct
  • Object
show all
Defined in:
lib/postmen/label.rb

Overview

Label object

See Also:

Class Method Summary collapse

Class Method Details

.all(options = {}) ⇒ LabelCollection

Returns all labels

Returns:

See Also:


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

def self.all(options = {})
  LabelCollection.all(options)
end

.create(params) ⇒ Label

Creates an instance of Label

Returns:

See Also:


32
33
34
# File 'lib/postmen/label.rb', line 32

def self.create(params)
  LabelCollection.create(params)
end

.find(id) ⇒ Label

Fetches single label

Returns:

See Also:


24
25
26
# File 'lib/postmen/label.rb', line 24

def self.find(id)
  LabelCollection.find(id)
end