Module: Tr3llo::Command::List::Add

Extended by:
Add
Included in:
Add
Defined in:
lib/3llo/command/list/add.rb

Instance Method Summary collapse

Instance Method Details

#execute(board_id) ⇒ Object



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

def execute(board_id)
  interface = Application.fetch_interface!()

  interface.print_frame do
    name = interface.input.ask("Name:", required: true)

    API::List.create(name, board_id)

    interface.puts("List has been created.")
  end
end