Describe a “pseudo” resource endpoint location in terms of an interation context and wrapped “real” endpoint instance.
This is a very special case class used for wrapping endpoints in, for example, the inter-resource remote call code in the middleware and in the auto-session code in Hoodoo::Client::Endpoint::AutoSession.
- N
[RW] | resource | The resource name described, as a Symbol (e.g. |
[RW] | version | Resource endpoint version, as an Integer (e.g. 2). |
[RW] | wrapped_endpoint | A wrapped Endpoint class, which will be used for the actual call to the remote resource, after pre/post-processing in the context of source_interaction (e.g. augmenting session permissions with source-resource-interface-specified additions necessary to call the target remote resource). |
Create an instance with named parameters as follows:
resource
-
See resource.
version
-
See version.
wrapped_endpoint
-
See wrapped_endpoint.
Source: show
# File lib/hoodoo/services/discovery/results/for_remote.rb, line 46 def initialize( resource:, version:, wrapped_endpoint: ) self.resource = resource.to_sym self.version = version.to_i self.wrapped_endpoint = wrapped_endpoint end