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

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

Constructor Details

#initializeWeekChart

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