class Postmen::Rate

Rate object It encapsulates Rate record objects @see RateObject @see docs.postmen.com/api.html#rates API documentation

Public Class Methods

all(options = {}) click to toggle source

Returns all rates

@see RateCollection#all @return [RateCollection] Collection of Rates

# File lib/postmen/rate.rb, line 15
def self.all(options = {})
  RateCollection.all(options)
end
create(params) click to toggle source

Creates an instance of Rate

@see RateCollection#create @return [Rate]

# File lib/postmen/rate.rb, line 31
def self.create(params)
  RateCollection.create(params)
end
find(id) click to toggle source

Fetches single rate

@see RateCollection#find @return [Rate]

# File lib/postmen/rate.rb, line 23
def self.find(id)
  RateCollection.find(id)
end