Class: Order::FraudDetector::Result

Inherits:
Data
  • Object
show all
Defined in:
app/services/order/fraud_detector.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(fraud_report: nil, potential_fraud: nil) ⇒ Result

Returns a new instance of Result.



5
# File 'app/services/order/fraud_detector.rb', line 5

def initialize(fraud_report: nil, potential_fraud: nil) = super

Instance Attribute Details

#fraud_reportObject (readonly)

Returns the value of attribute fraud_report

Returns:

  • (Object)

    the current value of fraud_report



4
5
6
# File 'app/services/order/fraud_detector.rb', line 4

def fraud_report
  @fraud_report
end

#potential_fraudObject (readonly)

Returns the value of attribute potential_fraud

Returns:

  • (Object)

    the current value of potential_fraud



4
5
6
# File 'app/services/order/fraud_detector.rb', line 4

def potential_fraud
  @potential_fraud
end