class Mollie::Amount
Attributes
Public Class Methods
Source
# File lib/mollie/amount.rb, line 5 def initialize(attributes) super unless attributes.nil? end
Calls superclass method
Public Instance Methods
Source
# File lib/mollie/amount.rb, line 13 def to_h { value: attributes['value'], currency: attributes['currency'] } end
Source
# File lib/mollie/amount.rb, line 9 def value=(val) @value = BigDecimal(val.to_s) end