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