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, message_class) ⇒ Response
constructor
A new instance of Response.
- #send_message(message) ⇒ Object
Methods inherited from DripDrop::ZMQBaseHandler
#add_connection, #address, #on_receive, #on_recv, #post_setup, #read_connection, #write_connection
Methods inherited from BaseHandler
#handle_error, #on_error, #print_exception
Constructor Details
#initialize(xrep, identities, seq, message_class) ⇒ Response
Returns a new instance of Response.
246 247 248 249 250 251 |
# File 'lib/dripdrop/handlers/zeromq.rb', line 246 def initialize(xrep,identities,seq,) @xrep = xrep @seq = seq @identities = identities @message_class = end |
Instance Attribute Details
#identities ⇒ Object
Returns the value of attribute identities.
244 245 246 |
# File 'lib/dripdrop/handlers/zeromq.rb', line 244 def identities @identities end |
#seq ⇒ Object
Returns the value of attribute seq.
244 245 246 |
# File 'lib/dripdrop/handlers/zeromq.rb', line 244 def seq @seq end |
#xrep ⇒ Object
Returns the value of attribute xrep.
244 245 246 |
# File 'lib/dripdrop/handlers/zeromq.rb', line 244 def xrep @xrep end |
Instance Method Details
#send_message(message) ⇒ Object
253 254 255 256 |
# File 'lib/dripdrop/handlers/zeromq.rb', line 253 def () = dd_messagify(,@message_class) @xrep.(,identities,seq) end |