Class: Rabbit::EventHandler

Inherits:
Object
  • Object
show all
Includes:
Tainbox
Defined in:
lib/rabbit/event_handler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ EventHandler

Returns a new instance of EventHandler.



22
23
24
25
26
# File 'lib/rabbit/event_handler.rb', line 22

def initialize(message)
  self.attributes = message.data
  self.data       = message.data
  self.project_id = message.project_id
end

Instance Attribute Details

#dataObject

Returns the value of attribute data.



10
11
12
# File 'lib/rabbit/event_handler.rb', line 10

def data
  @data
end