Class: DripDrop::ZMQXRepHandler::Response

Inherits:
DripDrop::ZMQBaseHandler show all
Defined in:
lib/dripdrop/handlers/zeromq.rb

Instance Attribute Summary collapse

Attributes inherited from DripDrop::ZMQBaseHandler

#connection

Instance Method Summary collapse

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

#identitiesObject

Returns the value of attribute identities.



218
219
220
# File 'lib/dripdrop/handlers/zeromq.rb', line 218

def identities
  @identities
end

#seqObject

Returns the value of attribute seq.



218
219
220
# File 'lib/dripdrop/handlers/zeromq.rb', line 218

def seq
  @seq
end

#xrepObject

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 send_message(message)
  dd_message = dd_messagify(message)
  @xrep.send_message(dd_message,identities,seq)
end