Class: Gitlab::Ci::Charts::Chart

Inherits:
Object
  • Object
show all
Defined in:
lib/gitlab/ci/charts.rb

Direct Known Subclasses

MonthChart, PipelineTime, WeekChart, YearChart

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(project) ⇒ Chart

Returns a new instance of Chart.



9
10
11
12
13
14
15
16
17
# File 'lib/gitlab/ci/charts.rb', line 9

def initialize(project)
  @labels = []
  @total = []
  @success = []
  @pipeline_times = []
  @project = project

  collect
end

Instance Attribute Details

#fromObject (readonly)

Returns the value of attribute from.



7
8
9
# File 'lib/gitlab/ci/charts.rb', line 7

def from
  @from
end

#labelsObject (readonly)

Returns the value of attribute labels.



7
8
9
# File 'lib/gitlab/ci/charts.rb', line 7

def labels
  @labels
end

#pipeline_timesObject (readonly)

Returns the value of attribute pipeline_times.



7
8
9
# File 'lib/gitlab/ci/charts.rb', line 7

def pipeline_times
  @pipeline_times
end

#projectObject (readonly)

Returns the value of attribute project.



7
8
9
# File 'lib/gitlab/ci/charts.rb', line 7

def project
  @project
end

#successObject (readonly)

Returns the value of attribute success.



7
8
9
# File 'lib/gitlab/ci/charts.rb', line 7

def success
  @success
end

#toObject (readonly)

Returns the value of attribute to.



7
8
9
# File 'lib/gitlab/ci/charts.rb', line 7

def to
  @to
end

#totalObject (readonly)

Returns the value of attribute total.



7
8
9
# File 'lib/gitlab/ci/charts.rb', line 7

def total
  @total
end