Module: Tr3llo::Command::Board::List

Extended by:
List
Included in:
List
Defined in:
lib/3llo/command/board/list.rb

Instance Method Summary collapse

Instance Method Details

#execute(user_id) ⇒ Object



7
8
9
10
11
12
13
14
# File 'lib/3llo/command/board/list.rb', line 7

def execute(user_id)
  interface = Application.fetch_interface!()
  boards = API::Board.find_all_by_user(user_id)

  interface.print_frame do
    interface.puts(View::Board::List.render(boards))
  end
end