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.



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

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.



13
14
15
# File 'lib/turbo_boost/commands/controller_pack.rb', line 13

def command
  @command
end

#runnerObject (readonly)

Returns the value of attribute runner.



13
14
15
# File 'lib/turbo_boost/commands/controller_pack.rb', line 13

def runner
  @runner
end

Instance Method Details

#controllerObject

DEPRECATED: This method will removed in a future release



27
28
29
30
# File 'lib/turbo_boost/commands/controller_pack.rb', line 27

def controller
  ActiveSupport::Deprecation.warn "This method will removed in a future release."
  runner.controller
end