Module: Tr3llo::Command::Card::ListMine

Extended by:
ListMine
Included in:
ListMine
Defined in:
lib/3llo/command/card/list_mine.rb

Instance Method Summary collapse

Instance Method Details

#execute(board_id, user_id) ⇒ Object



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

def execute(board_id, user_id)
  cards = API::Card.find_all_by_user(board_id, user_id)

  interface = Application.fetch_interface!()

  interface.print_frame do
    interface.puts(View::Card::ListMine.render(cards))
  end
end