Class: Gitlab::Ci::Charts::WeekChart

Inherits:
Chart
  • Object
show all
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

#from, #project, #to

Instance Method Summary collapse

Methods inherited from Chart

#labels, #totals

Constructor Details

#initializeWeekChart

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