Class: Spree::OrderRoutingRule::LocationRanking

Inherits:
Struct
  • Object
show all
Defined in:
app/models/spree/order_routing_rule.rb

Overview

rank is integer (lower = better) when the rule has an opinion, nil to abstain (the reducer skips abstaining rankings).

Instance Attribute Summary collapse

Instance Attribute Details

#location ⇒ Object

Returns the value of attribute location

Returns:

  • (Object) —

    the current value of location



21
22
23
# File 'app/models/spree/order_routing_rule.rb', line 21

def location
  @location
end

#rank ⇒ Object

Returns the value of attribute rank

Returns:

  • (Object) —

    the current value of rank



21
22
23
# File 'app/models/spree/order_routing_rule.rb', line 21

def rank
  @rank
end