Class: Workers::Event

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

  nil
end

Instance Attribute Details

#commandObject

Returns the value of attribute command.



3
4
5
# File 'lib/workers/event.rb', line 3

def command
  @command
end

#dataObject

Returns the value of attribute data.



4
5
6
# File 'lib/workers/event.rb', line 4

def data
  @data
end