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.



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

def destination
  @destination
end

#options_hashObject (readonly)

Returns the value of attribute options_hash.



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

def options_hash
  @options_hash
end

Instance Method Details

#options(options = {}) ⇒ Object



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

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

#publishes_to(destination) ⇒ Object



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

def publishes_to(destination)
  @destination = destination
end

#subscribes_to(destination) ⇒ Object



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

def subscribes_to(destination)
  @destination = destination
end