Class: AdaptivePayments::ConvertCurrencyRequest

Inherits:
AbstractRequest show all
Defined in:
lib/pp-adaptive/convert_currency_request.rb

Instance Method Summary collapse

Methods inherited from AbstractRequest

build_response, for_operation, operation

Methods included from Aliases

#alias_param, #alias_params

Methods included from JsonModel::Parsing

#from_json, #to_attributes

Methods included from JsonModel::Writing

#to_hash, #to_json

Instance Method Details

#convert_to_currenciesObject



19
20
21
# File 'lib/pp-adaptive/convert_currency_request.rb', line 19

def convert_to_currencies
  convert_to_currency_list.collect { |info| info[:code] }
end

#convert_to_currencies=(list_of_currencies) ⇒ Object



23
24
25
# File 'lib/pp-adaptive/convert_currency_request.rb', line 23

def convert_to_currencies=(list_of_currencies)
  self.convert_to_currency_list = list_of_currencies.map { |t| { :code => t } }
end