Class: SixSaferpay::ThreeDs
- Inherits:
-
Object
- Object
- SixSaferpay::ThreeDs
- Defined in:
- lib/six_saferpay/models/three_ds.rb
Instance Attribute Summary collapse
-
#authenticated ⇒ Object
Returns the value of attribute authenticated.
-
#liability_shift ⇒ Object
Returns the value of attribute liability_shift.
-
#verification_value ⇒ Object
Returns the value of attribute verification_value.
-
#xid ⇒ Object
Returns the value of attribute xid.
Instance Method Summary collapse
-
#initialize(authenticated:, liability_shift:, xid:, verification_value: nil) ⇒ ThreeDs
constructor
A new instance of ThreeDs.
- #to_hash ⇒ Object (also: #to_h)
Constructor Details
#initialize(authenticated:, liability_shift:, xid:, verification_value: nil) ⇒ ThreeDs
Returns a new instance of ThreeDs.
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/six_saferpay/models/three_ds.rb', line 6 def initialize(authenticated:, liability_shift:, xid:, verification_value: nil ) @authenticated = authenticated @liability_shift = liability_shift @xid = xid @verification_value = verification_value end |
Instance Attribute Details
#authenticated ⇒ Object
Returns the value of attribute authenticated.
4 5 6 |
# File 'lib/six_saferpay/models/three_ds.rb', line 4 def authenticated @authenticated end |
#liability_shift ⇒ Object
Returns the value of attribute liability_shift.
4 5 6 |
# File 'lib/six_saferpay/models/three_ds.rb', line 4 def liability_shift @liability_shift end |
#verification_value ⇒ Object
Returns the value of attribute verification_value.
4 5 6 |
# File 'lib/six_saferpay/models/three_ds.rb', line 4 def verification_value @verification_value end |
#xid ⇒ Object
Returns the value of attribute xid.
4 5 6 |
# File 'lib/six_saferpay/models/three_ds.rb', line 4 def xid @xid end |
Instance Method Details
#to_hash ⇒ Object Also known as: to_h
18 19 20 21 22 23 24 25 |
# File 'lib/six_saferpay/models/three_ds.rb', line 18 def to_hash hash = Hash.new hash.merge!(authenticated: @authenticated) if !@authenticated.nil? hash.merge!(liability_shift: @liability_shift) if !@liability_shift.nil? hash.merge!(xid: @xid) if @xid hash.merge!(verification_value: @verification_value) if @verification_value hash end |