Class: Wakame::Event::JobEvent

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

Direct Known Subclasses

JobComplete, JobFailed, JobStart

Instance Attribute Summary collapse

Attributes inherited from Base

#time

Instance Method Summary collapse

Constructor Details

#initialize(job_id) ⇒ JobEvent

Returns a new instance of JobEvent.



171
172
173
174
# File 'lib/wakame/event.rb', line 171

def initialize(job_id)
  super()
  @action = job_id
end

Instance Attribute Details

#job_idObject (readonly)

Returns the value of attribute job_id.



170
171
172
# File 'lib/wakame/event.rb', line 170

def job_id
  @job_id
end

Instance Method Details

#log_messageObject



176
177
178
# File 'lib/wakame/event.rb', line 176

def log_message
  "#{@action.class}"
end