Class: HerokuDelayedJobAutoscale::Manager::Stub
- Inherits:
-
Object
- Object
- HerokuDelayedJobAutoscale::Manager::Stub
- Defined in:
- lib/heroku_delayed_job_autoscale/managers/stub.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Stub
constructor
A new instance of Stub.
- #qty ⇒ Object
- #scale_down ⇒ Object
- #scale_up ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Stub
Returns a new instance of Stub.
4 5 6 |
# File 'lib/heroku_delayed_job_autoscale/managers/stub.rb', line 4 def initialize(={}) @qty = 0 end |
Instance Method Details
#qty ⇒ Object
8 9 10 |
# File 'lib/heroku_delayed_job_autoscale/managers/stub.rb', line 8 def qty @qty end |
#scale_down ⇒ Object
16 17 18 |
# File 'lib/heroku_delayed_job_autoscale/managers/stub.rb', line 16 def scale_down @qty -= 1 end |
#scale_up ⇒ Object
12 13 14 |
# File 'lib/heroku_delayed_job_autoscale/managers/stub.rb', line 12 def scale_up @qty += 1 end |