Sha256: 2904e675b4c3e0516f62886a333652f0e30d0ef116298dd555a7adbedaf90d09

Contents?: true

Size: 251 Bytes

Versions: 3

Compression:

Stored size: 251 Bytes

Contents

module TrelloCli
  module Formatters
    class ListList < Base
      def to_legacy
        data.map {|d| "#{d[:name]} ( #{d[:id]} )"}.join("\n")
      end

      def to_tsv
        data.map {|d| "#{d[:id]}\t#{d[:name]}\n"}
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
trello_cli-0.5.0 lib/trello_cli/formatters/list_list.rb
trello_cli-0.4.1 lib/trello_cli/formatters/list_list.rb
trello_cli-0.4.0 lib/trello_cli/formatters/list_list.rb