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