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.



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

#commandObject (readonly)

Returns the value of attribute command.



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

def command
  @command
end

#controllerObject (readonly)

Returns the value of attribute controller.



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

def controller
  @controller
end

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