Class: TurboBoost::Commands::ControllerPack

Inherits:
Object
  • Object
show all
Includes:
AttributeHydration
Defined in:
lib/turbo_boost/commands/controller_pack.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from AttributeHydration

#dehydrate, #hydrate

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

#commandObject (readonly)

Returns the value of attribute command.



8
9
10
# File 'lib/turbo_boost/commands/controller_pack.rb', line 8

def command
  @command
end

#runnerObject (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

#stateObject



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