class SixSaferpay::Dcc

Attributes

payer_amount[RW]

Public Class Methods

new(payer_amount:) click to toggle source
# File lib/six_saferpay/models/dcc.rb, line 6
def initialize(payer_amount:)
  @payer_amount = SixSaferpay::PayerAmount.new(payer_amount.to_h)
end

Public Instance Methods

to_h()
Alias for: to_hash
to_hash() click to toggle source
# File lib/six_saferpay/models/dcc.rb, line 10
def to_hash
  hash = Hash.new
  hash.merge!(payer_amount: @payer_amount.to_h) if @payer_amount
  hash
end
Also aliased as: to_h