Class: Webhookdb::Async::Autoscaler::FakeImplementation
- Inherits:
-
Object
- Object
- Webhookdb::Async::Autoscaler::FakeImplementation
- Defined in:
- lib/webhookdb/async/autoscaler.rb
Instance Attribute Summary collapse
-
#scale_downs ⇒ Object
readonly
Returns the value of attribute scale_downs.
-
#scale_ups ⇒ Object
readonly
Returns the value of attribute scale_ups.
Instance Method Summary collapse
-
#initialize ⇒ FakeImplementation
constructor
A new instance of FakeImplementation.
- #scale_down(*args) ⇒ Object
- #scale_up(*args) ⇒ Object
Constructor Details
#initialize ⇒ FakeImplementation
Returns a new instance of FakeImplementation.
96 97 98 99 |
# File 'lib/webhookdb/async/autoscaler.rb', line 96 def initialize @scale_ups = [] @scale_downs = [] end |
Instance Attribute Details
#scale_downs ⇒ Object (readonly)
Returns the value of attribute scale_downs.
94 95 96 |
# File 'lib/webhookdb/async/autoscaler.rb', line 94 def scale_downs @scale_downs end |
#scale_ups ⇒ Object (readonly)
Returns the value of attribute scale_ups.
94 95 96 |
# File 'lib/webhookdb/async/autoscaler.rb', line 94 def scale_ups @scale_ups end |
Instance Method Details
#scale_down(*args) ⇒ Object
105 106 107 |
# File 'lib/webhookdb/async/autoscaler.rb', line 105 def scale_down(*args) @scale_downs << args end |
#scale_up(*args) ⇒ Object
101 102 103 |
# File 'lib/webhookdb/async/autoscaler.rb', line 101 def scale_up(*args) @scale_ups << args end |