Class: Tr3llo::Command::Board::SelectCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/3llo/commands/board/select.rb

Instance Method Summary collapse

Constructor Details

#initialize(board_id) ⇒ SelectCommand

Returns a new instance of SelectCommand.



5
6
7
# File 'lib/3llo/commands/board/select.rb', line 5

def initialize(board_id)
  @board_id = board_id
end

Instance Method Details

#executeObject



9
10
11
12
13
14
15
# File 'lib/3llo/commands/board/select.rb', line 9

def execute
  board = load_board
  $container.register(:board, board)
  interface.print_frame do
    interface.puts("Board #{board[:name].labelize} selected")
  end
end