class Securetrading::Amount

Public Instance Methods

currency_code() click to toggle source
# File lib/securetrading/amount.rb, line 3
def currency_code
  attributes_hash['currencycode']
end
ox_xml() click to toggle source
# File lib/securetrading/amount.rb, line 11
def ox_xml
  el = XmlDoc.new_element(xml_tag_name)
  el['currencycode'] = currency_code if currency_code.present?
  el << value.to_s
end
value() click to toggle source
# File lib/securetrading/amount.rb, line 7
def value
  attributes_hash['content']
end