Class: Cards::MasterStoryList

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

Overview

this is an example of a custom csv builder that you can create

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



10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/cards/master_story_list.rb', line 10

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

  @csv << [
            @activity,
            @task,
            name,
            params[:description],
            nil, # params[:estimate],
            nil, # params[:phase],
            nil  # params[:priority]
          ]
end

#headerObject



6
7
8
# File 'lib/cards/master_story_list.rb', line 6

def header
  ["Activity", "Task", "Story", "Description", "Estimate", "Phase", "Priority"]
end