Class: Gitlab::Ci::Charts::WeekChart
- Defined in:
- lib/gitlab/ci/charts.rb
Constant Summary
Constants inherited from Chart
Chart::COMPLETED_STATUSES, Chart::SELECTABLE_STATUSES, Chart::STATUSES
Instance Attribute Summary
Attributes inherited from Chart
Instance Method Summary collapse
-
#initialize ⇒ WeekChart
constructor
A new instance of WeekChart.
Methods inherited from Chart
Constructor Details
#initialize ⇒ WeekChart
Returns a new instance of WeekChart.
109 110 111 112 113 114 115 116 |
# File 'lib/gitlab/ci/charts.rb', line 109 def initialize(*) @to = Date.today.end_of_day @from = (@to - 1.week).beginning_of_day @interval = :day @format = '%d %B' super end |