Class: Spree::ShippingMatrixRule

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/spree/shipping_matrix_rule.rb

Instance Method Summary collapse

Instance Method Details

#matches?(info) ⇒ Boolean

Returns:

  • (Boolean)


17
18
19
# File 'app/models/spree/shipping_matrix_rule.rb', line 17

def matches?(info)
  matches_role?(info) && matches_line_item_total?(info)
end