Class: Bacardi::FraudCheck

Inherits:
Object
  • Object
show all
Defined in:
lib/bacardi/fraud_check.rb

Instance Method Summary collapse

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

Returns:

  • (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