Class: SixSaferpay::Twint

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(certificate_expiration_date:) ⇒ Twint

Returns a new instance of Twint.



6
7
8
# File 'lib/six_saferpay/models/twint.rb', line 6

def initialize(certificate_expiration_date:)
  @certificate_expiration_date = certificate_expiration_date
end

Instance Attribute Details

#certificate_expiration_dateObject

Returns the value of attribute certificate_expiration_date.



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

def certificate_expiration_date
  @certificate_expiration_date
end

Instance Method Details

#to_hashObject Also known as: to_h



10
11
12
13
14
# File 'lib/six_saferpay/models/twint.rb', line 10

def to_hash
  hash = Hash.new
  hash.merge!(certificate_expiration_date: @certificate_expiration_date)
  hash
end