class SixSaferpay::CardForm

Attributes

holder_name[RW]
verification_code[RW]

Public Class Methods

new( holder_name: nil, verification_code: nil ) click to toggle source
# File lib/six_saferpay/models/card_form.rb, line 9
def initialize(
  holder_name: nil,
  verification_code: nil
)
  @holder_name = holder_name
  @verification_code = verification_code

end

Public Instance Methods

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