Class: GitStats::StatsView::Charts::All

Inherits:
Object
  • Object
show all
Defined in:
lib/git_stats/stats_view/charts/charts.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(repo) ⇒ All

Returns a new instance of All.



20
21
22
# File 'lib/git_stats/stats_view/charts/charts.rb', line 20

def initialize(repo)
  @repo = repo
end

Instance Attribute Details

#repoObject (readonly)

Returns the value of attribute repo.



18
19
20
# File 'lib/git_stats/stats_view/charts/charts.rb', line 18

def repo
  @repo
end

Instance Method Details

#activity_chartsObject



32
33
34
# File 'lib/git_stats/stats_view/charts/charts.rb', line 32

def activity_charts
  @activity_charts ||= Charts::ActivityCharts.new(repo)
end

#authors_chartsObject



28
29
30
# File 'lib/git_stats/stats_view/charts/charts.rb', line 28

def authors_charts
  @authors_charts ||= Charts::AuthorsCharts.new(repo.authors)
end

#repo_chartsObject



24
25
26
# File 'lib/git_stats/stats_view/charts/charts.rb', line 24

def repo_charts
  @repo_charts ||= Charts::RepoCharts.new(repo)
end