Class: Billd::Status
- Inherits:
-
Object
- Object
- Billd::Status
- Defined in:
- lib/billd/status.rb
Instance Attribute Summary collapse
-
#builds ⇒ Object
readonly
Returns the value of attribute builds.
Instance Method Summary collapse
-
#initialize(uri) ⇒ Status
constructor
A new instance of Status.
- #overall ⇒ Object
Constructor Details
Instance Attribute Details
#builds ⇒ Object (readonly)
Returns the value of attribute builds.
5 6 7 |
# File 'lib/billd/status.rb', line 5 def builds @builds end |
Instance Method Details
#overall ⇒ Object
11 12 13 14 15 16 |
# File 'lib/billd/status.rb', line 11 def overall result = :success! result = :failure! if @builds.any? { |b| b.outcome == :failure! } result = :building! if @builds.any? { |b| b.outcome == :building! } result end |