# frozen_string_literal: true # The Money element has three possible attributes: currency, alternateAmount, # alternateCurrency. The attributes currency and alternateCurrecy must be a three-letter ISO # 4217 currency code. The content of the Money element and of the aternateAmount # attribute should be a numeric value. For example: # 12.34 # The optional alternateCurrency and alternateAmount attributes are used together to specify # an amount in an alternate currency. These can be used to support dual-currency # requirements such as the euro. For example: # 12.34 # # Note: You can optionally use commas as thousands separators. Do not use # commas as decimal separators. # # Page: 59 # 5.35 module CXML class Money < DocumentNode accessible_attributes %i[ alternate_amount alternate_currency currency ] def amount content end def amount=(value) self.content = value end end end