Class: Tr3llo::Command::Card::ListCommand

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

Instance Method Summary collapse

Constructor Details

#initialize(board_id) ⇒ ListCommand

Returns a new instance of ListCommand.



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

def initialize(board_id)
  @board_id = board_id
end

Instance Method Details

#executeObject



9
10
11
12
13
14
15
16
17
# File 'lib/3llo/commands/card/list.rb', line 9

def execute
  lists = load_lists

  lists.each do |list|
    Tr3llo::Presenter::Card::ListPresenter
      .new(interface)
      .print!(list, load_cards(list[:id]))
  end
end