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.
-
#runner ⇒ Object
readonly
Returns the value of attribute runner.
Instance Method Summary collapse
-
#initialize(controller) ⇒ ControllerPack
constructor
A new instance of ControllerPack.
- #state ⇒ Object
Methods included from AttributeHydration
Constructor Details
#initialize(controller) ⇒ ControllerPack
Returns a new instance of ControllerPack.
22 23 24 25 |
# File 'lib/turbo_boost/commands/controller_pack.rb', line 22 def initialize(controller) @runner = TurboBoost::Commands::Runner.new(controller) @command = runner.command_instance end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
8 9 10 |
# File 'lib/turbo_boost/commands/controller_pack.rb', line 8 def command @command end |
#runner ⇒ Object (readonly)
Returns the value of attribute runner.
8 9 10 |
# File 'lib/turbo_boost/commands/controller_pack.rb', line 8 def runner @runner end |
Instance Method Details
#state ⇒ Object
27 28 29 30 |
# File 'lib/turbo_boost/commands/controller_pack.rb', line 27 def state ActiveSupport::Deprecation.warn "The `state` method has been deprecated. Please update to `command_state`." command_state end |