Class: Gitlab::Ci::Charts::MonthChart
- 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 ⇒ MonthChart
constructor
A new instance of MonthChart.
Constructor Details
#initialize ⇒ MonthChart
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 |