Class: Gitlab::Ci::Charts::YearChart
- Defined in:
- lib/gitlab/ci/charts.rb
Instance Attribute Summary
Attributes inherited from Chart
#from, #labels, #pipeline_times, #project, #success, #to, #total
Instance Method Summary collapse
-
#initialize ⇒ YearChart
constructor
A new instance of YearChart.
Constructor Details
#initialize ⇒ YearChart
Returns a new instance of YearChart.
59 60 61 62 63 64 65 66 |
# File 'lib/gitlab/ci/charts.rb', line 59 def initialize(*) @to = Date.today.end_of_month.end_of_day @from = (@to - 1.year).beginning_of_month.beginning_of_day @interval = :month @format = '%B %Y' super end |