Class: Workers::Event
- Inherits:
-
Object
- Object
- Workers::Event
- Defined in:
- lib/workers/event.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
Returns the value of attribute command.
-
#data ⇒ Object
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(command, data) ⇒ Event
constructor
A new instance of Event.
Constructor Details
#initialize(command, data) ⇒ Event
Returns a new instance of Event.
6 7 8 9 10 11 |
# File 'lib/workers/event.rb', line 6 def initialize(command, data) @command = command @data = data return nil end |
Instance Attribute Details
#command ⇒ Object
Returns the value of attribute command.
3 4 5 |
# File 'lib/workers/event.rb', line 3 def command @command end |
#data ⇒ Object
Returns the value of attribute data.
4 5 6 |
# File 'lib/workers/event.rb', line 4 def data @data end |