Class: OurEelHacks::Autoscaler::LowerLimit

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



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

Returns:

  • (Boolean)


54
55
56
# File 'lib/our-eel-hacks/autoscaler.rb', line 54

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