Class: SixSaferpay::FraudPrevention

Inherits:
Object
  • Object
show all
Defined in:
lib/six_saferpay/models/fraud_prevention.rb

Instance Method Summary collapse

Constructor Details

#initialize(result: nil) ⇒ FraudPrevention

Returns a new instance of FraudPrevention.



8
9
10
11
12
# File 'lib/six_saferpay/models/fraud_prevention.rb', line 8

def initialize(
  result: nil
  )
  @result = result
end

Instance Method Details

#to_hashObject Also known as: to_h



14
15
16
17
18
19
20
# File 'lib/six_saferpay/models/fraud_prevention.rb', line 14

def to_hash
  hash = Hash.new
  if @result
    hash.merge!(result: @result)
  end
  hash
end