Class: TurboBoost::Commands::ControllerPack
- Inherits:
-
Object
- Object
- TurboBoost::Commands::ControllerPack
- Includes:
- AttributeHydration
- Defined in:
- lib/turbo_boost/commands/controller_pack.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#controller ⇒ Object
readonly
Returns the value of attribute controller.
-
#runner ⇒ Object
readonly
Returns the value of attribute runner.
-
#state_manager ⇒ Object
(also: #state)
readonly
Returns the value of attribute state_manager.
Instance Method Summary collapse
-
#initialize(controller) ⇒ ControllerPack
constructor
A new instance of ControllerPack.
Methods included from AttributeHydration
Constructor Details
#initialize(controller) ⇒ ControllerPack
Returns a new instance of ControllerPack.
23 24 25 26 27 28 |
# File 'lib/turbo_boost/commands/controller_pack.rb', line 23 def initialize(controller) @controller = controller @state_manager = TurboBoost::State::Manager.new(controller) @runner = TurboBoost::Commands::Runner.new(controller, state_manager) @command = runner.command_instance end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
9 10 11 |
# File 'lib/turbo_boost/commands/controller_pack.rb', line 9 def command @command end |
#controller ⇒ Object (readonly)
Returns the value of attribute controller.
9 10 11 |
# File 'lib/turbo_boost/commands/controller_pack.rb', line 9 def controller @controller end |
#runner ⇒ Object (readonly)
Returns the value of attribute runner.
9 10 11 |
# File 'lib/turbo_boost/commands/controller_pack.rb', line 9 def runner @runner end |
#state_manager ⇒ Object (readonly) Also known as: state
Returns the value of attribute state_manager.
9 10 11 |
# File 'lib/turbo_boost/commands/controller_pack.rb', line 9 def state_manager @state_manager end |