Method: Centra::Rule::OrderCompare#==

Defined in:
lib/centra/rule/order_compare.rb

#==(other) ⇒ Object



23
24
25
26
27
28
# File 'lib/centra/rule/order_compare.rb', line 23

def ==(other)
  return false if order.email != other.email
  return false if order.delay_in_seconds(other) > allowed_delay_in_seconds

  true
end