Class: Wakame::Event::ClusterStatusChanged

Inherits:
Base
  • Object
show all
Defined in:
lib/wakame/event.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#time

Instance Method Summary collapse

Constructor Details

#initialize(instance_id, status) ⇒ ClusterStatusChanged

Returns a new instance of ClusterStatusChanged.



19
20
21
22
23
# File 'lib/wakame/event.rb', line 19

def initialize(instance_id, status)
  super()
  @instance_id = instance_id
  @status = status
end

Instance Attribute Details

#instance_idObject (readonly)

Returns the value of attribute instance_id.



18
19
20
# File 'lib/wakame/event.rb', line 18

def instance_id
  @instance_id
end

#statusObject (readonly)

Returns the value of attribute status.



18
19
20
# File 'lib/wakame/event.rb', line 18

def status
  @status
end

Instance Method Details

#log_messageObject



25
26
27
# File 'lib/wakame/event.rb', line 25

def log_message
  "#{instance_id}, #{@status}"
end