Class: OurEelHacks::Autoscaler::UpperLimit

Inherits:
Limit
  • Object
show all
Defined in:
lib/our-eel-hacks/autoscaler.rb

Instance Attribute Summary

Attributes inherited from Limit

#hard, #soft

Instance Method Summary collapse

Methods inherited from Limit

#initialize

Constructor Details

This class inherits a constructor from OurEelHacks::Autoscaler::Limit

Instance Method Details

#<(value) ⇒ Object



48
49
50
# File 'lib/our-eel-hacks/autoscaler.rb', line 48

def <(value)
  return @hard < value
end

#>(value) ⇒ Object



44
45
46
# File 'lib/our-eel-hacks/autoscaler.rb', line 44

def >(value)
  return @soft > value
end

#includes?(value) ⇒ Boolean

Returns:

  • (Boolean)


40
41
42
# File 'lib/our-eel-hacks/autoscaler.rb', line 40

def includes?(value)
  return (@soft < value && value <= @hard)
end