Class: SixSaferpay::AliasCard

Inherits:
Object
  • Object
show all
Defined in:
lib/six_saferpay/models/alias_card.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(exp_year:, exp_month:) ⇒ AliasCard

Returns a new instance of AliasCard.



6
7
8
9
# 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

Instance Attribute Details

#exp_monthObject

Returns the value of attribute exp_month.



4
5
6
# File 'lib/six_saferpay/models/alias_card.rb', line 4

def exp_month
  @exp_month
end

#exp_yearObject

Returns the value of attribute exp_year.



4
5
6
# File 'lib/six_saferpay/models/alias_card.rb', line 4

def exp_year
  @exp_year
end

Instance Method Details

#to_hashObject Also known as: to_h



11
12
13
14
15
16
# 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