Class: Tango::Api::Resources::ExchangeRates
- Defined in:
- lib/tango/api/resources/exchange_rates.rb
Overview
Resource for exchange rates across catalog items and currencies.
Instance Method Summary collapse
-
#get(params = {}) ⇒ Object
GET /exchangerates Example params: { currency: ‘USD’, country: ‘US’ }.
-
#get_for_utid(utid, params = {}) ⇒ Object
GET /exchangerates/utid Fetch exchange rate info for a specific catalog item by UTID.
Methods inherited from Base
Constructor Details
This class inherits a constructor from Tango::Api::Resources::Base
Instance Method Details
#get(params = {}) ⇒ Object
GET /exchangerates Example params: { currency: ‘USD’, country: ‘US’ }
10 11 12 |
# File 'lib/tango/api/resources/exchange_rates.rb', line 10 def get(params = {}) get_json("exchangerates", params) end |
#get_for_utid(utid, params = {}) ⇒ Object
GET /exchangerates/utid Fetch exchange rate info for a specific catalog item by UTID.
16 17 18 |
# File 'lib/tango/api/resources/exchange_rates.rb', line 16 def get_for_utid(utid, params = {}) get_json("exchangerates/#{utid}", params) end |