Class: Gitlab::Ci::Charts::Chart
- Inherits:
-
Object
- Object
- Gitlab::Ci::Charts::Chart
- Defined in:
- lib/gitlab/ci/charts.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#from ⇒ Object
readonly
Returns the value of attribute from.
-
#labels ⇒ Object
readonly
Returns the value of attribute labels.
-
#pipeline_times ⇒ Object
readonly
Returns the value of attribute pipeline_times.
-
#project ⇒ Object
readonly
Returns the value of attribute project.
-
#success ⇒ Object
readonly
Returns the value of attribute success.
-
#to ⇒ Object
readonly
Returns the value of attribute to.
-
#total ⇒ Object
readonly
Returns the value of attribute total.
Instance Method Summary collapse
-
#initialize(project) ⇒ Chart
constructor
A new instance of Chart.
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
#from ⇒ Object (readonly)
Returns the value of attribute from.
7 8 9 |
# File 'lib/gitlab/ci/charts.rb', line 7 def from @from end |
#labels ⇒ Object (readonly)
Returns the value of attribute labels.
7 8 9 |
# File 'lib/gitlab/ci/charts.rb', line 7 def labels @labels end |
#pipeline_times ⇒ Object (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 |
#project ⇒ Object (readonly)
Returns the value of attribute project.
7 8 9 |
# File 'lib/gitlab/ci/charts.rb', line 7 def project @project end |
#success ⇒ Object (readonly)
Returns the value of attribute success.
7 8 9 |
# File 'lib/gitlab/ci/charts.rb', line 7 def success @success end |
#to ⇒ Object (readonly)
Returns the value of attribute to.
7 8 9 |
# File 'lib/gitlab/ci/charts.rb', line 7 def to @to end |
#total ⇒ Object (readonly)
Returns the value of attribute total.
7 8 9 |
# File 'lib/gitlab/ci/charts.rb', line 7 def total @total end |