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