Class: Postmen::Manifest
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- Postmen::Manifest
- Defined in:
- lib/postmen/manifest.rb
Overview
A manifest object object
Class Method Summary collapse
-
.all(options = {}) ⇒ ManifestCollection
Returns all manifests.
-
.create(params) ⇒ Manifest
Creates an instance of manifest.
-
.find(id) ⇒ Manifest
Fetches single manifest.
Class Method Details
.all(options = {}) ⇒ ManifestCollection
Returns all manifests
18 19 20 |
# File 'lib/postmen/manifest.rb', line 18 def self.all( = {}) ManifestCollection.all() end |
.create(params) ⇒ Manifest
Creates an instance of manifest
34 35 36 |
# File 'lib/postmen/manifest.rb', line 34 def self.create(params) ManifestCollection.create(params) end |
.find(id) ⇒ Manifest
Fetches single manifest
26 27 28 |
# File 'lib/postmen/manifest.rb', line 26 def self.find(id) ManifestCollection.find(id) end |