module Tr3llo::Command::Board::Select
Public Instance Methods
execute(board_key)
click to toggle source
# File lib/3llo/command/board/select.rb, line 7 def execute(board_key) board_id = Entities.parse_id(:board, board_key) assert_board_id!(board_id, board_key) board = API::Board.find(board_id) Application.register_board!(board) interface = Application.fetch_interface!() interface.print_frame do interface.puts("Board #{Utils.format_highlight(board.name)} selected") end end
Private Instance Methods
assert_board_id!(board_id, board_key)
click to toggle source
# File lib/3llo/command/board/select.rb, line 23 def assert_board_id!(board_id, board_key) raise InvalidArgumentError.new("#{board_key.inspect} is not a valid board key") unless board_id end