Class: DripDrop::ZMQXRepHandler::Response
- Inherits:
-
DripDrop::ZMQBaseHandler
- Object
- BaseHandler
- DripDrop::ZMQBaseHandler
- DripDrop::ZMQXRepHandler::Response
- Defined in:
- lib/dripdrop/handlers/zeromq.rb
Instance Attribute Summary collapse
-
#identities ⇒ Object
Returns the value of attribute identities.
-
#seq ⇒ Object
Returns the value of attribute seq.
-
#xrep ⇒ Object
Returns the value of attribute xrep.
Attributes inherited from DripDrop::ZMQBaseHandler
Instance Method Summary collapse
-
#initialize(xrep, identities, seq) ⇒ Response
constructor
A new instance of Response.
- #send_message(message) ⇒ Object
Methods inherited from DripDrop::ZMQBaseHandler
#address, #on_recv, #post_setup
Methods inherited from BaseHandler
#handle_error, #on_error, #print_exception
Constructor Details
#initialize(xrep, identities, seq) ⇒ Response
Returns a new instance of Response.
220 221 222 223 224 |
# File 'lib/dripdrop/handlers/zeromq.rb', line 220 def initialize(xrep,identities,seq) @xrep = xrep @seq = seq @identities = identities end |
Instance Attribute Details
#identities ⇒ Object
Returns the value of attribute identities.
218 219 220 |
# File 'lib/dripdrop/handlers/zeromq.rb', line 218 def identities @identities end |
#seq ⇒ Object
Returns the value of attribute seq.
218 219 220 |
# File 'lib/dripdrop/handlers/zeromq.rb', line 218 def seq @seq end |
#xrep ⇒ Object
Returns the value of attribute xrep.
218 219 220 |
# File 'lib/dripdrop/handlers/zeromq.rb', line 218 def xrep @xrep end |
Instance Method Details
#send_message(message) ⇒ Object
226 227 228 229 |
# File 'lib/dripdrop/handlers/zeromq.rb', line 226 def () = dd_messagify() @xrep.(,identities,seq) end |