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