class SixSaferpay::Amount
Attributes
currency_code[RW]
value[RW]
Public Class Methods
new(value:, currency_code:)
click to toggle source
# File lib/six_saferpay/models/amount.rb, line 6 def initialize(value:, currency_code:) @value = value @currency_code = currency_code end
Public Instance Methods
to_hash()
click to toggle source
# File lib/six_saferpay/models/amount.rb, line 11 def to_hash hash = Hash.new hash.merge!(value: @value) hash.merge!(currency_code: @currency_code) hash end
Also aliased as: to_h