class SixSaferpay::Alias

Attributes

id[RW]
lifetime[RW]

Public Class Methods

new(id:, lifetime: ) click to toggle source
# File lib/six_saferpay/models/alias.rb, line 7
def initialize(id:,
               lifetime: )
  @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/alias.rb, line 13
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