Class: Gitlab::Ci::Pipeline::Duration::Period
- Inherits:
-
Struct
- Object
- Struct
- Gitlab::Ci::Pipeline::Duration::Period
- Defined in:
- lib/gitlab/ci/pipeline/duration.rb
Instance Attribute Summary collapse
-
#first ⇒ Object
Returns the value of attribute first.
-
#last ⇒ Object
Returns the value of attribute last.
Instance Method Summary collapse
Instance Attribute Details
#first ⇒ Object
Returns the value of attribute first
85 86 87 |
# File 'lib/gitlab/ci/pipeline/duration.rb', line 85 def first @first end |
#last ⇒ Object
Returns the value of attribute last
85 86 87 |
# File 'lib/gitlab/ci/pipeline/duration.rb', line 85 def last @last end |
Instance Method Details
#duration ⇒ Object
86 87 88 |
# File 'lib/gitlab/ci/pipeline/duration.rb', line 86 def duration last - first end |