Module: Mercadolibre::Core::Currencies

Included in:
Api
Defined in:
lib/mercadolibre/core/currencies.rb

Instance Method Summary collapse

Instance Method Details

#currency_convertion_rate(currency_from, currency_to) ⇒ Object



12
13
14
15
# File 'lib/mercadolibre/core/currencies.rb', line 12

def currency_convertion_rate(currency_from, currency_to)
  filters = { from: currency_from, to: currency_to }
  get_request('/currency_conversions/search', filters).body
end

#get_currenciesObject



4
5
6
# File 'lib/mercadolibre/core/currencies.rb', line 4

def get_currencies
  get_request('/currencies').body
end

#get_currency(currency_id) ⇒ Object



8
9
10
# File 'lib/mercadolibre/core/currencies.rb', line 8

def get_currency(currency_id)
  get_request("/currencies/#{currency_id}").body
end