Class: TrelloCli::CLI::Board::List
- Inherits:
-
Object
- Object
- TrelloCli::CLI::Board::List
- Defined in:
- lib/trello_cli/cli/board/list.rb
Instance Method Summary collapse
-
#initialize ⇒ List
constructor
A new instance of List.
- #run ⇒ Object
Constructor Details
#initialize ⇒ List
Returns a new instance of List.
6 7 8 |
# File 'lib/trello_cli/cli/board/list.rb', line 6 def initialize @options = {} end |
Instance Method Details
#run ⇒ Object
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/trello_cli/cli/board/list.rb', line 10 def run option_parser.parse! list_boards(@options[:closed]).each do |board| name = board.attributes[:name] id = board.attributes[:id] closed = board.attributes[:closed] puts "#{name} ( #{id} )" end end |