Class: SixSaferpay::PaymentMeansAlias

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id:, verification_code: nil) ⇒ PaymentMeansAlias

Returns a new instance of PaymentMeansAlias.



8
9
10
11
12
13
# File 'lib/six_saferpay/models/payment_means_alias.rb', line 8

def initialize(id:,
               verification_code: nil
              )
  @id = id
  @verification_code = verification_code
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#verification_codeObject

Returns the value of attribute verification_code.



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

def verification_code
  @verification_code
end

Instance Method Details

#to_hashObject Also known as: to_h



15
16
17
18
19
20
# File 'lib/six_saferpay/models/payment_means_alias.rb', line 15

def to_hash
  hash = Hash.new
  hash.merge!(id: @id) if @id
  hash.merge!(verification_code: @verification_code) if @verification_code
  hash
end