Class: InchCI::Worker::Build::Result
- Inherits:
-
Struct
- Object
- Struct
- InchCI::Worker::Build::Result
- Extended by:
- Forwardable
- Defined in:
- lib/inch_ci/worker/build/result.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#badge_in_readme ⇒ Object
Returns the value of attribute badge_in_readme.
-
#branch_name ⇒ Object
Returns the value of attribute branch_name.
-
#finished_at ⇒ Object
Returns the value of attribute finished_at.
-
#latest_revision ⇒ Object
Returns the value of attribute latest_revision.
-
#objects ⇒ Object
Returns the value of attribute objects.
-
#repo ⇒ Object
Returns the value of attribute repo.
-
#started_at ⇒ Object
Returns the value of attribute started_at.
- #status ⇒ Object
Instance Method Summary collapse
Instance Attribute Details
#badge_in_readme ⇒ Object
Returns the value of attribute badge_in_readme.
15 16 17 |
# File 'lib/inch_ci/worker/build/result.rb', line 15 def badge_in_readme @badge_in_readme end |
#branch_name ⇒ Object
Returns the value of attribute branch_name
4 5 6 |
# File 'lib/inch_ci/worker/build/result.rb', line 4 def branch_name @branch_name end |
#finished_at ⇒ Object
Returns the value of attribute finished_at.
16 17 18 |
# File 'lib/inch_ci/worker/build/result.rb', line 16 def finished_at @finished_at end |
#latest_revision ⇒ Object
Returns the value of attribute latest_revision
4 5 6 |
# File 'lib/inch_ci/worker/build/result.rb', line 4 def latest_revision @latest_revision end |
#objects ⇒ Object
Returns the value of attribute objects
4 5 6 |
# File 'lib/inch_ci/worker/build/result.rb', line 4 def objects @objects end |
#repo ⇒ Object
Returns the value of attribute repo
4 5 6 |
# File 'lib/inch_ci/worker/build/result.rb', line 4 def repo @repo end |
#started_at ⇒ Object
Returns the value of attribute started_at.
14 15 16 |
# File 'lib/inch_ci/worker/build/result.rb', line 14 def started_at @started_at end |
#status ⇒ Object
27 28 29 |
# File 'lib/inch_ci/worker/build/result.rb', line 27 def status @status || 'error' end |
Instance Method Details
#duration ⇒ Object
19 20 21 |
# File 'lib/inch_ci/worker/build/result.rb', line 19 def duration finished_at - started_at end |
#revision_uid ⇒ Object
23 24 25 |
# File 'lib/inch_ci/worker/build/result.rb', line 23 def revision_uid repo.revision end |
#tag_uid ⇒ Object
31 32 33 |
# File 'lib/inch_ci/worker/build/result.rb', line 31 def tag_uid repo.tag.empty? ? nil : repo.tag end |