Class: Jackrabbit::MessageReceiver
- Inherits:
-
Object
- Object
- Jackrabbit::MessageReceiver
- Defined in:
- lib/jackrabbit/message_receiver.rb
Instance Attribute Summary collapse
-
#channel ⇒ Object
readonly
Returns the value of attribute channel.
-
#handler ⇒ Object
readonly
Returns the value of attribute handler.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #handle(info, message, payload) ⇒ Object
-
#initialize(channel, options = {}, &block) ⇒ MessageReceiver
constructor
A new instance of MessageReceiver.
Constructor Details
#initialize(channel, options = {}, &block) ⇒ MessageReceiver
Returns a new instance of MessageReceiver.
5 6 7 8 9 |
# File 'lib/jackrabbit/message_receiver.rb', line 5 def initialize(channel, = {}, &block) @channel = channel @options = handle_with(&block) if block_given? end |
Instance Attribute Details
#channel ⇒ Object (readonly)
Returns the value of attribute channel.
3 4 5 |
# File 'lib/jackrabbit/message_receiver.rb', line 3 def channel @channel end |
#handler ⇒ Object (readonly)
Returns the value of attribute handler.
3 4 5 |
# File 'lib/jackrabbit/message_receiver.rb', line 3 def handler @handler end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
3 4 5 |
# File 'lib/jackrabbit/message_receiver.rb', line 3 def @options end |