Class: SixSaferpay::Authentication
- Inherits:
-
Object
- Object
- SixSaferpay::Authentication
- Defined in:
- lib/six_saferpay/models/authentication.rb
Instance Attribute Summary collapse
-
#exemption ⇒ Object
Returns the value of attribute exemption.
-
#message ⇒ Object
Returns the value of attribute message.
-
#result ⇒ Object
Returns the value of attribute result.
-
#three_ds_challenge ⇒ Object
Returns the value of attribute three_ds_challenge.
-
#xid ⇒ Object
Returns the value of attribute xid.
Instance Method Summary collapse
-
#initialize(result: nil, message: nil, xid: nil, exemption: nil, three_ds_challenge: nil) ⇒ Authentication
constructor
ATTENTION: This is in some case mandatory.
- #to_hash ⇒ Object (also: #to_h)
Constructor Details
#initialize(result: nil, message: nil, xid: nil, exemption: nil, three_ds_challenge: nil) ⇒ Authentication
ATTENTION: This is in some case mandatory
12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/six_saferpay/models/authentication.rb', line 12 def initialize(result: nil, # ATTENTION: This is in some case mandatory message: nil, # ATTENTION: This is in some case mandatory xid: nil, exemption: nil, three_ds_challenge: nil) @result = result @message = @xid = xid @exemption = exemption @three_ds_challenge = three_ds_challenge end |
Instance Attribute Details
#exemption ⇒ Object
Returns the value of attribute exemption.
4 5 6 |
# File 'lib/six_saferpay/models/authentication.rb', line 4 def exemption @exemption end |
#message ⇒ Object
Returns the value of attribute message.
4 5 6 |
# File 'lib/six_saferpay/models/authentication.rb', line 4 def @message end |
#result ⇒ Object
Returns the value of attribute result.
4 5 6 |
# File 'lib/six_saferpay/models/authentication.rb', line 4 def result @result end |
#three_ds_challenge ⇒ Object
Returns the value of attribute three_ds_challenge.
4 5 6 |
# File 'lib/six_saferpay/models/authentication.rb', line 4 def three_ds_challenge @three_ds_challenge end |
#xid ⇒ Object
Returns the value of attribute xid.
4 5 6 |
# File 'lib/six_saferpay/models/authentication.rb', line 4 def xid @xid end |
Instance Method Details
#to_hash ⇒ Object Also known as: to_h
24 25 26 27 28 29 30 31 32 |
# File 'lib/six_saferpay/models/authentication.rb', line 24 def to_hash hash = Hash.new hash.merge!(result: @result) if @result hash.merge!(message: @message) if @message hash.merge!(xid: @xid) if @xid hash.merge!(exemption: @exemption) if @exemption hash.merge!(three_ds_challenge: @three_ds_challenge) if @three_ds_challenge hash end |