Class: TrelloCli::Formatters::ListList
- Defined in:
- lib/trello_cli/formatters/list_list.rb
Instance Method Summary collapse
Methods inherited from Base
#initialize, #output, #to_json
Constructor Details
This class inherits a constructor from TrelloCli::Formatters::Base
Instance Method Details
#to_legacy ⇒ Object
4 5 6 |
# File 'lib/trello_cli/formatters/list_list.rb', line 4 def to_legacy data.map {|d| "#{d[:name]} ( #{d[:id]} )"}.join("\n") end |
#to_tsv ⇒ Object
8 9 10 |
# File 'lib/trello_cli/formatters/list_list.rb', line 8 def to_tsv data.map {|d| "#{d[:id]}\t#{d[:name]}\n"} end |