class Mollie::Amount

Attributes

currency[RW]
value[RW]

Public Class Methods

new(attributes) click to toggle source
Calls superclass method
# File lib/mollie/amount.rb, line 5
def initialize(attributes)
  super unless attributes.nil?
end

Public Instance Methods

to_h() click to toggle source
# File lib/mollie/amount.rb, line 13
def to_h
  {
    value: attributes['value'],
    currency: attributes['currency']
  }
end
value=(val) click to toggle source
# File lib/mollie/amount.rb, line 9
def value=(val)
  @value = BigDecimal(val.to_s)
end