Module: RosettaQueue::MessageHandler::ClassMethods

Defined in:
lib/rosetta_queue/message_handler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#destinationObject (readonly)

Returns the value of attribute destination.



5
6
7
# File 'lib/rosetta_queue/message_handler.rb', line 5

def destination
  @destination
end

#options_hashObject (readonly)

Returns the value of attribute options_hash.



5
6
7
# File 'lib/rosetta_queue/message_handler.rb', line 5

def options_hash
  @options_hash
end

Instance Method Details

#options(options = {}) ⇒ Object



7
8
9
# File 'lib/rosetta_queue/message_handler.rb', line 7

def options(options = {})
  @options_hash = options
end

#publishes_to(destination) ⇒ Object



11
12
13
# File 'lib/rosetta_queue/message_handler.rb', line 11

def publishes_to(destination)
  @destination = destination
end

#subscribes_to(destination) ⇒ Object



15
16
17
# File 'lib/rosetta_queue/message_handler.rb', line 15

def subscribes_to(destination)
  @destination = destination
end