Class: Cards::TrackerCsv

Inherits:
CsvBuilder show all
Defined in:
lib/cards/tracker_csv.rb

Instance Method Summary collapse

Methods inherited from CsvBuilder

#add_activity, #add_task, #done, from, #initialize, #process

Constructor Details

This class inherits a constructor from Cards::CsvBuilder

Instance Method Details

#add_story(name, params = {}) ⇒ Object



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/cards/tracker_csv.rb', line 9

def add_story(name, params = {})
  return unless [nil, '', 'Story', 'Chore'].include?(params[:story_type])

  @csv << [
            name,
            @task,
            params[:story_type],
            nil, # params[:estimate],
            "#{@activity}\n#{params[:description]}"
          ]
end

#headerObject



5
6
7
# File 'lib/cards/tracker_csv.rb', line 5

def header
  ["Story", "Labels", "Story Type", "Estimate", "Description"]
end