Class: Wakame::Event::ActionEvent

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

Direct Known Subclasses

ActionComplete, ActionFailed, ActionStart

Instance Attribute Summary collapse

Attributes inherited from Base

#time

Instance Method Summary collapse

Constructor Details

#initialize(action) ⇒ ActionEvent

Returns a new instance of ActionEvent.



146
147
148
149
# File 'lib/wakame/event.rb', line 146

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

Instance Attribute Details

#actionObject (readonly)

Returns the value of attribute action.



145
146
147
# File 'lib/wakame/event.rb', line 145

def action
  @action
end

Instance Method Details

#log_messageObject



151
152
153
# File 'lib/wakame/event.rb', line 151

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