Class: Amigo::Autoscaler::Handlers::Fake
- Inherits:
-
Amigo::Autoscaler::Handler
- Object
- Amigo::Autoscaler::Handler
- Amigo::Autoscaler::Handlers::Fake
- Defined in:
- lib/amigo/autoscaler/handlers/fake.rb
Instance Attribute Summary collapse
-
#downs ⇒ Object
Returns the value of attribute downs.
-
#ups ⇒ Object
Returns the value of attribute ups.
Instance Method Summary collapse
-
#initialize ⇒ Fake
constructor
A new instance of Fake.
- #scale_down(**kw) ⇒ Object
- #scale_up(**kw) ⇒ Object
Constructor Details
#initialize ⇒ Fake
Returns a new instance of Fake.
11 12 13 14 15 |
# File 'lib/amigo/autoscaler/handlers/fake.rb', line 11 def initialize @ups = [] @downs = [] super() end |
Instance Attribute Details
#downs ⇒ Object
Returns the value of attribute downs.
9 10 11 |
# File 'lib/amigo/autoscaler/handlers/fake.rb', line 9 def downs @downs end |
#ups ⇒ Object
Returns the value of attribute ups.
9 10 11 |
# File 'lib/amigo/autoscaler/handlers/fake.rb', line 9 def ups @ups end |
Instance Method Details
#scale_down(**kw) ⇒ Object
21 22 23 |
# File 'lib/amigo/autoscaler/handlers/fake.rb', line 21 def scale_down(**kw) @downs << kw end |
#scale_up(**kw) ⇒ Object
17 18 19 |
# File 'lib/amigo/autoscaler/handlers/fake.rb', line 17 def scale_up(**kw) @ups << kw end |