Class: Postmen::Label
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- Postmen::Label
- Defined in:
- lib/postmen/label.rb
Overview
Label object
Class Method Summary collapse
-
.all(options = {}) ⇒ LabelCollection
Returns all labels.
-
.create(params) ⇒ Label
Creates an instance of Label.
-
.find(id) ⇒ Label
Fetches single label.
Class Method Details
.all(options = {}) ⇒ LabelCollection
Returns all labels
17 18 19 |
# File 'lib/postmen/label.rb', line 17 def self.all( = {}) LabelCollection.all() end |
.create(params) ⇒ Label
Creates an instance of Label
33 34 35 |
# File 'lib/postmen/label.rb', line 33 def self.create(params) LabelCollection.create(params) end |
.find(id) ⇒ Label
Fetches single label
25 26 27 |
# File 'lib/postmen/label.rb', line 25 def self.find(id) LabelCollection.find(id) end |