class SixSaferpay::UpdateAlias

Attributes

id[RW]
lifetime[RW]

Public Class Methods

new(id:, lifetime: nil) click to toggle source
# File lib/six_saferpay/models/update_alias.rb, line 6
def initialize(id:, lifetime: nil)
  @id = id
  @lifetime = lifetime
end

Public Instance Methods

to_h()
Alias for: to_hash
to_hash() click to toggle source
# 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
Also aliased as: to_h