Class: PipeRpc::Client::Request
- Defined in:
- lib/pipe_rpc/client_request.rb,
lib/pipe_rpc/client_request_response.rb
Defined Under Namespace
Classes: ErrorResponse, Response, Result, ResultResponse
Instance Attribute Summary collapse
-
#hub ⇒ Object
readonly
Returns the value of attribute hub.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
-
#stacktrace ⇒ Object
readonly
Returns the value of attribute stacktrace.
Attributes inherited from Request
Instance Method Summary collapse
- #id ⇒ Object
- #id=(id) ⇒ Object
-
#initialize(hub, request) ⇒ Request
constructor
A new instance of Request.
Methods inherited from Request
Constructor Details
#initialize(hub, request) ⇒ Request
Returns a new instance of Request.
5 6 7 8 9 10 11 12 13 |
# File 'lib/pipe_rpc/client_request.rb', line 5 def initialize(hub, request) @hub = hub request[:arguments] = hub.transport_mapper.to_transport request[:arguments] super request # discard first three entries mentioning Client::Request#initialize, # Client::Request.new and Client#method_missing in stacktrace @stacktrace = Kernel.respond_to?(:caller) ? Kernel.caller(3).to_a : [] @result = Result.new(self) end |
Instance Attribute Details
#hub ⇒ Object (readonly)
Returns the value of attribute hub.
15 16 17 |
# File 'lib/pipe_rpc/client_request.rb', line 15 def hub @hub end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
15 16 17 |
# File 'lib/pipe_rpc/client_request.rb', line 15 def result @result end |
#stacktrace ⇒ Object (readonly)
Returns the value of attribute stacktrace.
15 16 17 |
# File 'lib/pipe_rpc/client_request.rb', line 15 def stacktrace @stacktrace end |