Class: SixSaferpay::AliasCard
- Inherits:
-
Object
- Object
- SixSaferpay::AliasCard
- Defined in:
- lib/six_saferpay/models/alias_card.rb
Instance Attribute Summary collapse
-
#exp_month ⇒ Object
Returns the value of attribute exp_month.
-
#exp_year ⇒ Object
Returns the value of attribute exp_year.
Instance Method Summary collapse
-
#initialize(exp_year:, exp_month:) ⇒ AliasCard
constructor
A new instance of AliasCard.
- #to_hash ⇒ Object (also: #to_h)
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_month ⇒ Object
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_year ⇒ Object
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_hash ⇒ Object 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 |