Class: Postmen::Manifest

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

Overview

A manifest object object

See Also:

Class Method Summary collapse

Class Method Details

.all(options = {}) ⇒ ManifestCollection

Returns all manifests



18
19
20
# File 'lib/postmen/manifest.rb', line 18

def self.all(options = {})
  ManifestCollection.all(options)
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