Class: SixSaferpay::PaymentMeansAlias
- Inherits:
-
Object
- Object
- SixSaferpay::PaymentMeansAlias
- Defined in:
- lib/six_saferpay/models/payment_means_alias.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#verification_code ⇒ Object
Returns the value of attribute verification_code.
Instance Method Summary collapse
-
#initialize(id:, verification_code: nil) ⇒ PaymentMeansAlias
constructor
A new instance of PaymentMeansAlias.
- #to_hash ⇒ Object (also: #to_h)
Constructor Details
#initialize(id:, verification_code: nil) ⇒ PaymentMeansAlias
Returns a new instance of PaymentMeansAlias.
8 9 10 11 12 13 |
# File 'lib/six_saferpay/models/payment_means_alias.rb', line 8 def initialize(id:, verification_code: nil ) @id = id @verification_code = verification_code end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/six_saferpay/models/payment_means_alias.rb', line 4 def id @id end |
#verification_code ⇒ Object
Returns the value of attribute verification_code.
4 5 6 |
# File 'lib/six_saferpay/models/payment_means_alias.rb', line 4 def verification_code @verification_code end |
Instance Method Details
#to_hash ⇒ Object Also known as: to_h
15 16 17 18 19 20 |
# File 'lib/six_saferpay/models/payment_means_alias.rb', line 15 def to_hash hash = Hash.new hash.merge!(id: @id) if @id hash.merge!(verification_code: @verification_code) if @verification_code hash end |