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
87 88 89 |
# File 'lib/gitlab/ci/pipeline/duration.rb', line 87 def first @first end |
#last ⇒ Object
Returns the value of attribute last
87 88 89 |
# File 'lib/gitlab/ci/pipeline/duration.rb', line 87 def last @last end |
Instance Method Details
#duration ⇒ Object
88 89 90 |
# File 'lib/gitlab/ci/pipeline/duration.rb', line 88 def duration last - first end |