Class: Tr3llo::Command::Board::ListCommand

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

Instance Method Summary collapse

Constructor Details

#initialize(user_id) ⇒ ListCommand

Returns a new instance of ListCommand.



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

def initialize(user_id)
  @user_id = user_id
end

Instance Method Details

#executeObject



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

def execute
  Tr3llo::Presenter::Board::ListPresenter
    .new(interface)
    .print!(list_boards)
end