class SixSaferpay::Check
Attributes
terminal_id[RW]
type[RW]
Public Class Methods
new(type:, terminal_id:)
click to toggle source
# File lib/six_saferpay/models/check.rb, line 8 def initialize(type:, terminal_id:) @type = type @terminal_id = terminal_id end
Public Instance Methods
to_hash()
click to toggle source
# File lib/six_saferpay/models/check.rb, line 13 def to_hash hash = Hash.new hash.merge!(type: @type) if @type hash.merge!(terminal_id: @terminal_id) if @terminal_id hash end
Also aliased as: to_h