class IndependentReserveClient::GetExchangeRateResponse
Private Instance Methods
default_body()
click to toggle source
# File lib/independent_reserve_client/responses/get_exchange_rate_response.rb, line 8 def default_body json = JSON.parse(raw_response.body) IndependentReserveClient::ExchangeRate.new( rate: json["LastPrice"], timestamp: Time.parse(json["CreatedTimestampUtc"]) ) end