Class: TrelloCli::Formatters::CardCreate

Inherits:
Base
  • Object
show all
Defined in:
lib/trello_cli/formatters/card_create.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_legacyObject



4
5
6
7
8
# File 'lib/trello_cli/formatters/card_create.rb', line 4

def to_legacy
  msg = "Card Created.\n"
  msg << "Name        : #{data[:name]}\n"
  msg << "Description : #{data[:desc]}\n"
end

#to_tsvObject



10
11
12
# File 'lib/trello_cli/formatters/card_create.rb', line 10

def to_tsv
  [data[:id], data[:name], data[:desc]].join("\t") + "\n"
end