Class: Equalshares::TieBreaker::MaxCost
- Defined in:
- lib/equalshares/tie_breaker.rb
Instance Method Summary collapse
Methods inherited from Extreme
Instance Method Details
#extreme ⇒ Object
55 |
# File 'lib/equalshares/tie_breaker.rb', line 55 def extreme = :max |
#key(project_id, ctx) ⇒ Object
54 |
# File 'lib/equalshares/tie_breaker.rb', line 54 def key(project_id, ctx) = ctx.cost[project_id] |
#sort_key(project_id, ctx) ⇒ Object
56 |
# File 'lib/equalshares/tie_breaker.rb', line 56 def sort_key(project_id, ctx) = -ctx.cost[project_id] |