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