class Hoodoo::Services::Discovery::ForAMQP
Describe a resource endpoint location in a way that allows it to be contacted over AMQP (e.g. via Alchemy).
Attributes
resource[RW]
The resource name described, as a Symbol (e.g. :Purchase
).
routing_path[R]
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).
version[RW]
Resource endpoint version, as an Integer (e.g. 2).
Public Class Methods
new( resource:, version: )
click to toggle source
Create an instance with named parameters as follows:
# 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