Module: EasyshipRatesRubyApi::Api::Rates
- Included in:
- Client
- Defined in:
- lib/easyship/rates/ruby/api/api/rates.rb
Overview
Rate API
[(contribute here)](github.com/easyship/easyship-rates-ruby-api)
Instance Method Summary collapse
-
#get_all_rates(options = {}) ⇒ Easyship::Rates::Ruby::Mash
Retrieve all detailed Rate.
-
#get_base_price(options = {}) ⇒ Easyship::Rates::Ruby::Mash
Retrieve a Base Price.
- #get_efulfillment_rates(options = {}) ⇒ Object
-
#get_rate(options = {}) ⇒ Easyship::Rates::Ruby::Mash
Retrieve a Rate.
-
#update_rates(options = {}) ⇒ Easyship::Rates::Ruby::Mash
Update Rate by courier admin name.
Instance Method Details
#get_all_rates(options = {}) ⇒ Easyship::Rates::Ruby::Mash
Retrieve all detailed Rate
39 40 41 42 43 |
# File 'lib/easyship/rates/ruby/api/api/rates.rb', line 39 def get_all_rates( = {}) path = '/get_all_rates' defaults = {} Mash.from_json(post(path, defaults.merge()).body) end |
#get_base_price(options = {}) ⇒ Easyship::Rates::Ruby::Mash
Retrieve a Base Price
52 53 54 55 |
# File 'lib/easyship/rates/ruby/api/api/rates.rb', line 52 def get_base_price( = {}) path = '/get_base_price' simple_query(path, ) end |
#get_efulfillment_rates(options = {}) ⇒ Object
67 68 69 70 71 |
# File 'lib/easyship/rates/ruby/api/api/rates.rb', line 67 def get_efulfillment_rates( = {}) path = '/get_efulfillment_rates' defaults = {} Mash.from_json(post(path, defaults.merge()).body) end |
#get_rate(options = {}) ⇒ Easyship::Rates::Ruby::Mash
Retrieve a Rate
19 20 21 22 |
# File 'lib/easyship/rates/ruby/api/api/rates.rb', line 19 def get_rate( = {}) path = '/get_rates' simple_query(path, ) end |
#update_rates(options = {}) ⇒ Easyship::Rates::Ruby::Mash
Update Rate by courier admin name
61 62 63 64 65 |
# File 'lib/easyship/rates/ruby/api/api/rates.rb', line 61 def update_rates( = {}) path = '/update_rates' defaults = {} Mash.from_json(post(path, defaults.merge()).body) end |