class Gocoin::Merchants::Currencies

Public Class Methods

new(api) click to toggle source
# File lib/gocoin/api/merchants/currencies.rb, line 5
def initialize(api)
  @api = api
end

Public Instance Methods

get(merchant_id, currency_code) click to toggle source
# File lib/gocoin/api/merchants/currencies.rb, line 9
def get(merchant_id, currency_code)
        @api.client.logger.debug 'Gocoin::Merchants::Currencies#get called.'
        route = "/merchants/#{merchant_id}/currencies/#{currency_code}"
        options = {}
        @api.request route, options
end
list(merchant_id) click to toggle source
# File lib/gocoin/api/merchants/currencies.rb, line 16
def list(merchant_id)
        @api.client.logger.debug 'Gocoin::Merchants::Currencies#list called.'
        route = "/merchants/#{merchant_id}/currencies"
        options = {}
        @api.request route, options
end
update(merchant_id, currency_code, params) click to toggle source
# File lib/gocoin/api/merchants/currencies.rb, line 23
def update(merchant_id, currency_code, params)
        @api.client.logger.debug 'Gocoin::Merchants::Currencies#update called.'
        route = "/merchants/#{merchant_id}/currencies/#{currency_code}"
        options = {
                method: 'PATCH',
                payload: params
        }
        @api.request route, options
end