Class: Pixo::Rpc::RequestMessage

Inherits:
Message
  • Object
show all
Defined in:
lib/pixo/rpc/service.rb

Instance Attribute Summary collapse

Attributes inherited from Message

#data, #rid

Instance Method Summary collapse

Constructor Details

#initialize(data, async) ⇒ RequestMessage

Returns a new instance of RequestMessage.



109
110
111
112
113
# File 'lib/pixo/rpc/service.rb', line 109

def initialize(data, async)
  super(data)
  @rid  = "rid_#{SecureRandom.hex(10)}"
  @async = async
end

Instance Attribute Details

#asyncObject (readonly)

Returns the value of attribute async.



108
109
110
# File 'lib/pixo/rpc/service.rb', line 108

def async
  @async
end