Sha256: 764be5772b5672dcd198828b29bf20c013dc9d2798b07a5ab119d806d3046d2e

Contents?: true

Size: 621 Bytes

Versions: 2

Compression:

Stored size: 621 Bytes

Contents

module Gocoin
	module Merchants
	  class CurrencyConversions

			def initialize(api)
			  @api = api
			end

			def get(merchant_id, currency_conversion_id)
				@api.client.logger.debug 'Gocoin::Merchants::CurrencyConversion#get called.'
				route = "/merchants/#{merchant_id}/currency_conversions/#{currency_conversion_id}"
				options = {}
				@api.request route, options
			end

			def list(merchant_id)
				@api.client.logger.debug 'Gocoin::Merchants::CurrencyConversion#list called.'
				route = "/merchants/#{merchant_id}/currency_conversions"
				options = {}
				@api.request route, options
			end

		end
	end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gocoin-0.1.4 lib/gocoin/api/merchants/currency_conversions.rb
gocoin-0.1.3 lib/gocoin/api/merchants/currency_conversions.rb