Class: Artisan::Reports::BurnUpChart

Inherits:
Object
  • Object
show all
Defined in:
lib/artisan/reports/burn_up_chart.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(project) ⇒ BurnUpChart

Returns a new instance of BurnUpChart.



11
12
13
# File 'lib/artisan/reports/burn_up_chart.rb', line 11

def initialize(project)
  @project = project
end

Instance Attribute Details

#projectObject

Returns the value of attribute project.



10
11
12
# File 'lib/artisan/reports/burn_up_chart.rb', line 10

def project
  @project
end

Instance Method Details

#completed_dataObject



27
28
29
# File 'lib/artisan/reports/burn_up_chart.rb', line 27

def completed_data
  accumulate_by(:completed_size)
end

#completed_size(date) ⇒ Object



19
20
21
# File 'lib/artisan/reports/burn_up_chart.rb', line 19

def completed_size date
  sum_of_stories_by completed_query(date)
end

#project_dataObject



23
24
25
# File 'lib/artisan/reports/burn_up_chart.rb', line 23

def project_data
  accumulate_by(:project_size)
end

#project_size(date) ⇒ Object



15
16
17
# File 'lib/artisan/reports/burn_up_chart.rb', line 15

def project_size date
  sum_of_stories_by project_query(date)
end