Class: AdaptivePayments::ConvertCurrencyRequest
Instance Method Summary
collapse
build_response, for_operation, operation
Methods included from Aliases
#alias_param, #alias_params
#from_json, #to_attributes
#to_hash, #to_json
Instance Method Details
#convert_to_currencies ⇒ Object
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
|