Class: Gitlab::Ci::Charts::MonthChart

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

#initializeMonthChart

Returns a new instance of MonthChart.



70
71
72
73
74
75
76
77
# File 'lib/gitlab/ci/charts.rb', line 70

def initialize(*)
  @to     = Date.today.end_of_day
  @from   = (@to - 1.month).beginning_of_day
  @interval = :day
  @format = '%d %B'

  super
end