Class: SixSaferpay::UpdateAlias

Inherits:
Object
  • Object
show all
Defined in:
lib/six_saferpay/models/update_alias.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject

Returns the value of attribute id.



4
5
6
# File 'lib/six_saferpay/models/update_alias.rb', line 4

def id
  @id
end

#lifetimeObject

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_hashObject 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