Class: Artisan::Reports::HighChartsInteractor

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(project) ⇒ HighChartsInteractor

Returns a new instance of HighChartsInteractor.



8
9
10
# File 'lib/artisan/reports/high_charts_interactor.rb', line 8

def initialize(project)
  @project = project
end

Instance Attribute Details

#projectObject (readonly)

Returns the value of attribute project.



6
7
8
# File 'lib/artisan/reports/high_charts_interactor.rb', line 6

def project
  @project
end

Instance Method Details

#average_standard_deviation_per_iteration_chartObject



20
21
22
# File 'lib/artisan/reports/high_charts_interactor.rb', line 20

def average_standard_deviation_per_iteration_chart
  Artisan::Reports::HighChartsDataRetriever.build_average_standard_deviation_per_iteration_chart(@project)
end

#average_story_size_per_iteration_chartObject



16
17
18
# File 'lib/artisan/reports/high_charts_interactor.rb', line 16

def average_story_size_per_iteration_chart
  Artisan::Reports::HighChartsDataRetriever.build_average_story_size_per_iteration_chart(@project)
end

#burn_up_chartObject



12
13
14
# File 'lib/artisan/reports/high_charts_interactor.rb', line 12

def burn_up_chart
  Artisan::Reports::HighChartsDataRetriever.build_burn_up_chart(@project)
end

#percentage_of_commitments_metObject



28
29
30
# File 'lib/artisan/reports/high_charts_interactor.rb', line 28

def percentage_of_commitments_met
  Artisan::Reports::HighChartsDataRetriever.percentage_of_commitments_met(@project)
end

#percentage_of_commitments_met_chartObject



24
25
26
# File 'lib/artisan/reports/high_charts_interactor.rb', line 24

def percentage_of_commitments_met_chart
  Artisan::Reports::HighChartsDataRetriever.build_percentage_of_commitments_met_chart(@project)
end