Class: GroundControl::BuildReport
- Inherits:
-
Object
- Object
- GroundControl::BuildReport
- Defined in:
- lib/groundcontrol/build_report.rb
Instance Attribute Summary collapse
-
#branch ⇒ Object
readonly
Returns the value of attribute branch.
-
#commit ⇒ Object
readonly
Returns the value of attribute commit.
-
#cucumber_success ⇒ Object
readonly
Returns the value of attribute cucumber_success.
-
#project_name ⇒ Object
readonly
Returns the value of attribute project_name.
-
#test_results ⇒ Object
Returns the value of attribute test_results.
-
#testunit_success ⇒ Object
readonly
Returns the value of attribute testunit_success.
Instance Method Summary collapse
- #failed? ⇒ Boolean
-
#initialize(project_name, branch, testunit_success, cucumber_success, commit) ⇒ BuildReport
constructor
A new instance of BuildReport.
- #success? ⇒ Boolean
Constructor Details
#initialize(project_name, branch, testunit_success, cucumber_success, commit) ⇒ BuildReport
Returns a new instance of BuildReport.
8 9 10 11 12 13 14 15 |
# File 'lib/groundcontrol/build_report.rb', line 8 def initialize(project_name, branch, testunit_success, cucumber_success, commit) @project_name = project_name @branch = branch @testunit_success = testunit_success @cucumber_success = cucumber_success @commit = commit @test_results = [] end |
Instance Attribute Details
#branch ⇒ Object (readonly)
Returns the value of attribute branch.
5 6 7 |
# File 'lib/groundcontrol/build_report.rb', line 5 def branch @branch end |
#commit ⇒ Object (readonly)
Returns the value of attribute commit.
5 6 7 |
# File 'lib/groundcontrol/build_report.rb', line 5 def commit @commit end |
#cucumber_success ⇒ Object (readonly)
Returns the value of attribute cucumber_success.
5 6 7 |
# File 'lib/groundcontrol/build_report.rb', line 5 def cucumber_success @cucumber_success end |
#project_name ⇒ Object (readonly)
Returns the value of attribute project_name.
5 6 7 |
# File 'lib/groundcontrol/build_report.rb', line 5 def project_name @project_name end |
#test_results ⇒ Object
Returns the value of attribute test_results.
6 7 8 |
# File 'lib/groundcontrol/build_report.rb', line 6 def test_results @test_results end |
#testunit_success ⇒ Object (readonly)
Returns the value of attribute testunit_success.
5 6 7 |
# File 'lib/groundcontrol/build_report.rb', line 5 def testunit_success @testunit_success end |
Instance Method Details
#failed? ⇒ Boolean
21 22 23 |
# File 'lib/groundcontrol/build_report.rb', line 21 def failed? !success? end |
#success? ⇒ Boolean
17 18 19 |
# File 'lib/groundcontrol/build_report.rb', line 17 def success? testunit_success && cucumber_success end |