Class: OurEelHacks::Autoscaler::UpperLimit
- Inherits:
-
Limit
- Object
- Limit
- OurEelHacks::Autoscaler::UpperLimit
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
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
40
41
42
|
# File 'lib/our-eel-hacks/autoscaler.rb', line 40
def includes?(value)
return (@soft < value && value <= @hard)
end
|