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.



96
97
98
99
# File 'lib/webhookdb/async/autoscaler.rb', line 96

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

Instance Attribute Details

#scale_downsObject (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_upsObject (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