Class: Rabbit::EventHandler

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

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ EventHandler

Returns a new instance of EventHandler.



33
34
35
36
37
38
# File 'lib/rabbit/event_handler.rb', line 33

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