Class: DispatchRider::Publisher::ServiceChannelMapper
- Inherits:
-
Object
- Object
- DispatchRider::Publisher::ServiceChannelMapper
- Defined in:
- lib/dispatch-rider/publisher.rb
Instance Attribute Summary collapse
-
#destination_registrar ⇒ Object
readonly
Returns the value of attribute destination_registrar.
Instance Method Summary collapse
-
#initialize(destination_registrar) ⇒ ServiceChannelMapper
constructor
A new instance of ServiceChannelMapper.
- #map(names) ⇒ Object
Constructor Details
#initialize(destination_registrar) ⇒ ServiceChannelMapper
Returns a new instance of ServiceChannelMapper.
66 67 68 |
# File 'lib/dispatch-rider/publisher.rb', line 66 def initialize(destination_registrar) @destination_registrar = destination_registrar end |
Instance Attribute Details
#destination_registrar ⇒ Object (readonly)
Returns the value of attribute destination_registrar.
64 65 66 |
# File 'lib/dispatch-rider/publisher.rb', line 64 def destination_registrar @destination_registrar end |
Instance Method Details
#map(names) ⇒ Object
70 71 72 |
# File 'lib/dispatch-rider/publisher.rb', line 70 def map(names) services_and_channels_map(publishing_destinations(names)) end |