class SixSaferpay::CheckResult

Attributes

authentication[RW]
message[RW]
result[RW]

Public Class Methods

new(result:, message: , authentication: nil) click to toggle source
# File lib/six_saferpay/models/check_result.rb, line 9
def initialize(result:,
               message: ,
              authentication: nil)
  @result = result
  @message = message
  @authentication = authentication
end

Public Instance Methods

to_h()
Alias for: to_hash
to_hash() click to toggle source
# 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
Also aliased as: to_h