class Straight::ExchangeRate::CoinbaseAdapter
Constants
- FETCH_URL
Public Instance Methods
rate_for(currency_code)
click to toggle source
Calls superclass method
Straight::ExchangeRate::Adapter#rate_for
# File lib/straight/exchange_rate_adapters/coinbase_adapter.rb, line 8 def rate_for(currency_code) super rate = get_rate_value_from_hash(@rates, "btc_to_#{currency_code.downcase}") rate_to_f(rate) end