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.



46
47
48
# File 'lib/dispatch-rider/publisher.rb', line 46

def initialize(destination_registrar)
  @destination_registrar = destination_registrar
end

Instance Attribute Details

#destination_registrarObject (readonly)

Returns the value of attribute destination_registrar.



44
45
46
# File 'lib/dispatch-rider/publisher.rb', line 44

def destination_registrar
  @destination_registrar
end

Instance Method Details

#map(names) ⇒ Object



50
51
52
# File 'lib/dispatch-rider/publisher.rb', line 50

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