Class: Postmen::Rate

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

Overview

Rate object It encapsulates Rate record objects

Class Method Summary collapse

Class Method Details

.all(options = {}) ⇒ RateCollection

Returns all rates

Returns:

See Also:



15
16
17
# File 'lib/postmen/rate.rb', line 15

def self.all(options = {})
  RateCollection.all(options)
end

.create(params) ⇒ Rate

Creates an instance of Rate

Returns:

See Also:



31
32
33
# File 'lib/postmen/rate.rb', line 31

def self.create(params)
  RateCollection.create(params)
end

.find(id) ⇒ Rate

Fetches single rate

Returns:

See Also:



23
24
25
# File 'lib/postmen/rate.rb', line 23

def self.find(id)
  RateCollection.find(id)
end