Module: Capabilities::Helpers

Included in:
Cacheable
Defined in:
app/models/capabilities.rb

Instance Method Summary collapse

Instance Method Details

#gears_freeObject



22
23
24
# File 'app/models/capabilities.rb', line 22

def gears_free
  [max_gears - consumed_gears, 0].max
end

#gears_free?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'app/models/capabilities.rb', line 18

def gears_free?
  gears_free > 0
end