Class: Postmen::Rate
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- Postmen::Rate
- Defined in:
- lib/postmen/rate.rb
Overview
Rate object It encapsulates Rate record objects
Class Method Summary collapse
-
.all(options = {}) ⇒ RateCollection
Returns all rates.
-
.create(params) ⇒ Rate
Creates an instance of Rate.
-
.find(id) ⇒ Rate
Fetches single rate.
Class Method Details
.all(options = {}) ⇒ RateCollection
Returns all rates
15 16 17 |
# File 'lib/postmen/rate.rb', line 15 def self.all( = {}) RateCollection.all() end |
.create(params) ⇒ Rate
Creates an instance of Rate
31 32 33 |
# File 'lib/postmen/rate.rb', line 31 def self.create(params) RateCollection.create(params) end |
.find(id) ⇒ Rate
Fetches single rate
23 24 25 |
# File 'lib/postmen/rate.rb', line 23 def self.find(id) RateCollection.find(id) end |