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.
46 47 48 |
# File 'lib/dispatch-rider/publisher.rb', line 46 def initialize(destination_registrar) @destination_registrar = destination_registrar end |
Instance Attribute Details
#destination_registrar ⇒ Object (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 |