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.


16
17
18
# File 'lib/git_stats/stats_view/charts/charts.rb', line 16

def initialize(repo)
  @repo = repo
end

Instance Attribute Details

#repoObject (readonly)

Returns the value of attribute repo


14
15
16
# File 'lib/git_stats/stats_view/charts/charts.rb', line 14

def repo
  @repo
end

Instance Method Details

#activity_chartsObject


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

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

#authors_chartsObject


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

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

#repo_chartsObject


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

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