Class: OurEelHacks::Autoscaler::LowerLimit
- Inherits:
-
Limit
- Object
- Limit
- OurEelHacks::Autoscaler::LowerLimit
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
Instance Method Details
#<(value) ⇒ Object
62
63
64
|
# File 'lib/our-eel-hacks/autoscaler.rb', line 62
def <(value)
return @soft < value
end
|
#>(value) ⇒ Object
58
59
60
|
# File 'lib/our-eel-hacks/autoscaler.rb', line 58
def >(value)
return @hard > value
end
|
#includes?(value) ⇒ Boolean
54
55
56
|
# File 'lib/our-eel-hacks/autoscaler.rb', line 54
def includes?(value)
return (value >= @hard && value <= @soft)
end
|