Sha256: fa8e117490bdf448aeed416d887f6626d23dcdf360ac38021810724a7f4005ee
Contents?: true
Size: 341 Bytes
Versions: 3
Compression:
Stored size: 341 Bytes
Contents
module Mollie class Amount < Base attr_accessor :value, :currency def initialize(attributes) super unless attributes.nil? end def value=(val) @value = BigDecimal.new(val.to_s) end def to_h { value: attributes['value'], currency: attributes['currency'] } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mollie-api-ruby-4.0.0.pre.alpha.2 | lib/mollie/amount.rb |
mollie-api-ruby-4.0.0 | lib/mollie/amount.rb |
mollie-api-ruby-4.0.0.pre.alpha.1 | lib/mollie/amount.rb |