lib/securetrading/amount.rb in securetrading-0.3.0 vs lib/securetrading/amount.rb in securetrading-0.3.1

- old
+ new

@@ -1,13 +1,17 @@ module Securetrading class Amount < BaseModel + def currency_code + attributes_hash['currencycode'] + end + def value - attributes_hash['__content__'] + attributes_hash['content'] end def ox_xml el = XmlDoc.new_element(xml_tag_name) - el['currencycode'] = currencycode + el['currencycode'] = currency_code if currency_code.present? el << value.to_s end end end