Class: Webhookdb::Async::Autoscaler::FakeImplementation

Inherits:
Object
  • Object
show all
Defined in:
lib/webhookdb/async/autoscaler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeFakeImplementation

Returns a new instance of FakeImplementation.



106
107
108
109
# File 'lib/webhookdb/async/autoscaler.rb', line 106

def initialize
  @scale_ups = []
  @scale_downs = []
end

Instance Attribute Details

#scale_downsObject (readonly)

Returns the value of attribute scale_downs.



104
105
106
# File 'lib/webhookdb/async/autoscaler.rb', line 104

def scale_downs
  @scale_downs
end

#scale_upsObject (readonly)

Returns the value of attribute scale_ups.



104
105
106
# File 'lib/webhookdb/async/autoscaler.rb', line 104

def scale_ups
  @scale_ups
end

Instance Method Details

#scale_down(*args) ⇒ Object



115
116
117
# File 'lib/webhookdb/async/autoscaler.rb', line 115

def scale_down(*args)
  @scale_downs << args
end

#scale_up(*args) ⇒ Object



111
112
113
# File 'lib/webhookdb/async/autoscaler.rb', line 111

def scale_up(*args)
  @scale_ups << args
end