Class: Amigo::Autoscaler::Handlers::Fake

Inherits:
Amigo::Autoscaler::Handler show all
Defined in:
lib/amigo/autoscaler/handlers/fake.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeFake

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

#downsObject

Returns the value of attribute downs.



9
10
11
# File 'lib/amigo/autoscaler/handlers/fake.rb', line 9

def downs
  @downs
end

#upsObject

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