Class: Artisan::Reports::BurnUpChart
- Inherits:
-
Object
- Object
- Artisan::Reports::BurnUpChart
- Defined in:
- lib/artisan/reports/burn_up_chart.rb
Instance Attribute Summary collapse
-
#project ⇒ Object
Returns the value of attribute project.
Instance Method Summary collapse
- #completed_data ⇒ Object
- #completed_size(date) ⇒ Object
-
#initialize(project) ⇒ BurnUpChart
constructor
A new instance of BurnUpChart.
- #project_data ⇒ Object
- #project_size(date) ⇒ Object
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
#project ⇒ Object
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_data ⇒ Object
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_data ⇒ Object
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 |