class SixSaferpay::FraudFree
Attributes
error_message[RW]
id[RW]
investigation_points[RW]
liability_shift[RW]
score[RW]
Public Class Methods
new(id: , liability_shift: , score: , investigation_points: nil, error_message: nil )
click to toggle source
# File lib/six_saferpay/models/fraud_free.rb, line 11 def initialize(id: , liability_shift: , score: , investigation_points: nil, error_message: nil ) @id = id @liability_shift = liability_shift @score = score @investigation_points = investigation_points @error_message = error_message end
Public Instance Methods
to_hash()
click to toggle source
# File lib/six_saferpay/models/fraud_free.rb, line 24 def to_hash hash = Hash.new hash.merge!(id: @id) if @id hash.merge!(liability_shift: @liability_shift) if !@liability_shift.nil? hash.merge!(score: @score) if @score hash.merge!(investigation_points: @investigation_points) if @investigation_points hash.merge!(error_message: @error_message) if @error_message hash end
Also aliased as: to_h