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