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
Constructor Details
#initialize(xrep, identities, seq) ⇒ Response
Returns a new instance of Response.
197 198 199 200 201 |
# File 'lib/dripdrop/handlers/zeromq.rb', line 197 def initialize(xrep,identities,seq) @xrep = xrep @seq = seq @identities = identities end |
Instance Attribute Details
#identities ⇒ Object
Returns the value of attribute identities.
195 196 197 |
# File 'lib/dripdrop/handlers/zeromq.rb', line 195 def identities @identities end |
#seq ⇒ Object
Returns the value of attribute seq.
195 196 197 |
# File 'lib/dripdrop/handlers/zeromq.rb', line 195 def seq @seq end |
#xrep ⇒ Object
Returns the value of attribute xrep.
195 196 197 |
# File 'lib/dripdrop/handlers/zeromq.rb', line 195 def xrep @xrep end |
Instance Method Details
#send_message(message) ⇒ Object
203 204 205 206 |
# File 'lib/dripdrop/handlers/zeromq.rb', line 203 def () = dd_messagify() @xrep.(,identities,seq) end |