class SixSaferpay::AliasCard

Attributes

exp_month[RW]
exp_year[RW]

Public Class Methods

new(exp_year:, exp_month:) click to toggle source
# File lib/six_saferpay/models/alias_card.rb, line 6
def initialize(exp_year:, exp_month:)
  @exp_year = exp_year
  @exp_month = exp_month
end

Public Instance Methods

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