class Io::Flow::V0::Clients::ChannelRates

Public Class Methods

new(client) click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 6037
def initialize(client)
  @client = HttpClient::Preconditions.assert_class('client', client, ::Io::Flow::V0::Client)
end

Public Instance Methods

get_all(channel_id) click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 6041
def get_all(channel_id)
  HttpClient::Preconditions.assert_class('channel_id', channel_id, String)
  r = @client.request("/channel/#{CGI.escape(channel_id)}/currency/rates/all").get
  r.map { |x| ::Io::Flow::V0::Models::Rate.new(x) }
end