Class: Bacardi::FraudCheck
- Inherits:
-
Object
- Object
- Bacardi::FraudCheck
- Defined in:
- lib/bacardi/fraud_check.rb
Instance Method Summary collapse
-
#initialize(order, notifier) ⇒ FraudCheck
constructor
A new instance of FraudCheck.
- #no_malicious_product_change? ⇒ Boolean
Constructor Details
#initialize(order, notifier) ⇒ FraudCheck
Returns a new instance of FraudCheck.
5 6 7 8 |
# File 'lib/bacardi/fraud_check.rb', line 5 def initialize(order, notifier) @order = order @notifier = notifier end |
Instance Method Details
#no_malicious_product_change? ⇒ Boolean
10 11 12 |
# File 'lib/bacardi/fraud_check.rb', line 10 def no_malicious_product_change? (@order.product_id == @notifier.item_number) && (@order.product_name == @notifier.item_name) end |