Class: Wakame::Event::JobEvent

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

Direct Known Subclasses

JobComplete, JobFailed, JobStart, JobSuccess

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.



233
234
235
236
# File 'lib/wakame/event.rb', line 233

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

Instance Attribute Details

#job_idObject (readonly)

Returns the value of attribute job_id.



232
233
234
# File 'lib/wakame/event.rb', line 232

def job_id
  @job_id
end

Instance Method Details

#log_messageObject



238
239
240
# File 'lib/wakame/event.rb', line 238

def log_message
  "#{@job_id}"
end