Class: Rubarb::Responder
- Inherits:
-
Object
- Object
- Rubarb::Responder
- Defined in:
- lib/rubarb/responder.rb
Instance Attribute Summary collapse
-
#handler ⇒ Object
readonly
Returns the value of attribute handler.
-
#message_id ⇒ Object
readonly
Returns the value of attribute message_id.
Instance Method Summary collapse
- #conn_id ⇒ Object
-
#initialize(handler, message_id) ⇒ Responder
constructor
A new instance of Responder.
- #reply(*args) ⇒ Object
Constructor Details
#initialize(handler, message_id) ⇒ Responder
Returns a new instance of Responder.
5 6 7 8 |
# File 'lib/rubarb/responder.rb', line 5 def initialize(handler, ) @handler = handler @message_id = end |
Instance Attribute Details
#handler ⇒ Object (readonly)
Returns the value of attribute handler.
4 5 6 |
# File 'lib/rubarb/responder.rb', line 4 def handler @handler end |
#message_id ⇒ Object (readonly)
Returns the value of attribute message_id.
3 4 5 |
# File 'lib/rubarb/responder.rb', line 3 def @message_id end |
Instance Method Details
#conn_id ⇒ Object
10 11 12 |
# File 'lib/rubarb/responder.rb', line 10 def conn_id @handler.conn_id end |
#reply(*args) ⇒ Object
14 15 16 |
# File 'lib/rubarb/responder.rb', line 14 def reply(*args) @handler.reply(@message_id, *args) end |