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
16 17 18 |
# File 'lib/postmen/label.rb', line 16 def self.all( = {}) LabelCollection.all() end |
.create(params) ⇒ Label
Creates an instance of Label
32 33 34 |
# File 'lib/postmen/label.rb', line 32 def self.create(params) LabelCollection.create(params) end |
.find(id) ⇒ Label
Fetches single label
24 25 26 |
# File 'lib/postmen/label.rb', line 24 def self.find(id) LabelCollection.find(id) end |