Describe a resource endpoint location in a way that allows it to be contacted over AMQP (e.g. via Alchemy).

Methods
N
Attributes
[RW] resource

The resource name described, as a Symbol (e.g. :Purchase).

[R] routing_path

Path at which the resource is expected to be found on the queue (routing via Topic Exchange and Alchemy Flux's translations of paths to keys).

[RW] version

Resource endpoint version, as an Integer (e.g. 2).

Class Public methods
new( resource:, version: )

Create an instance with named parameters as follows:

resource

See resource.

version

See version.

# File lib/hoodoo/services/discovery/results/for_amqp.rb, line 39
def initialize( resource:, version: )

  @resource     = resource.to_sym
  @version      = version.to_i
  @routing_path = Hoodoo::Services::Middleware.de_facto_path_for(
    resource,
    version
  )

end