Class: DispatchRider::Publisher::ServiceChannelMapper

Inherits:
Object
  • Object
show all
Defined in:
lib/dispatch-rider/publisher.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(destination_registrar) ⇒ ServiceChannelMapper

Returns a new instance of ServiceChannelMapper.



72
73
74
# File 'lib/dispatch-rider/publisher.rb', line 72

def initialize(destination_registrar)
  @destination_registrar = destination_registrar
end

Instance Attribute Details

#destination_registrarObject (readonly)

Returns the value of attribute destination_registrar.



70
71
72
# File 'lib/dispatch-rider/publisher.rb', line 70

def destination_registrar
  @destination_registrar
end

Instance Method Details

#map(names) ⇒ Object



76
77
78
# File 'lib/dispatch-rider/publisher.rb', line 76

def map(names)
  services_and_channels_map(publishing_destinations(names))
end