Class: Gitlab::Ci::Charts::WeekChart
- 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 ⇒ WeekChart
constructor
A new instance of WeekChart.
Constructor Details
#initialize ⇒ WeekChart
Returns a new instance of WeekChart.
81 82 83 84 85 86 87 88 |
# File 'lib/gitlab/ci/charts.rb', line 81 def initialize(*) @to = Date.today.end_of_day @from = (@to - 1.week).beginning_of_day @interval = :day @format = '%d %B' super end |