Class: Order::FraudDetector::Result

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

Overview

Service object: result.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of Result.



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

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



6
7
8
# File 'app/services/order/fraud_detector.rb', line 6

def fraud_report
  @fraud_report
end

#potential_fraudObject (readonly)

Returns the value of attribute potential_fraud

Returns:

  • (Object)

    the current value of potential_fraud



6
7
8
# File 'app/services/order/fraud_detector.rb', line 6

def potential_fraud
  @potential_fraud
end