Class: Freightrain::FreightService
- Inherits:
-
Object
- Object
- Freightrain::FreightService
- Extended by:
- ContainerHookable, ServiceHost, SignalHost
- Defined in:
- lib/freightrain/services/freight_service.rb
Instance Method Summary collapse
-
#initialize ⇒ FreightService
constructor
A new instance of FreightService.
Methods included from ContainerHookable
classes, container_options, extended, inherited, subclasses
Methods included from ServiceHost
Methods included from SignalHost
Constructor Details
#initialize ⇒ FreightService
Returns a new instance of FreightService.
14 15 16 17 18 19 20 21 |
# File 'lib/freightrain/services/freight_service.rb', line 14 def initialize get_services create_signals services.each do |service_key| service = instance_variable_get("@#{service_key}") service.hook_to_signals(self, service_key) end end |