Class: CiStatus::CruiseControl::Project
- Inherits:
-
Object
- Object
- CiStatus::CruiseControl::Project
- Defined in:
- lib/ci_status/cruise_control.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#status ⇒ Object
Returns the value of attribute status.
-
#time ⇒ Object
Returns the value of attribute time.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
- #failure? ⇒ Boolean
-
#initialize {|_self| ... } ⇒ Project
constructor
A new instance of Project.
- #success? ⇒ Boolean
Constructor Details
#initialize {|_self| ... } ⇒ Project
Returns a new instance of Project.
41 42 43 |
# File 'lib/ci_status/cruise_control.rb', line 41 def initialize(&block) yield self if block_given? end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
39 40 41 |
# File 'lib/ci_status/cruise_control.rb', line 39 def name @name end |
#status ⇒ Object
Returns the value of attribute status.
39 40 41 |
# File 'lib/ci_status/cruise_control.rb', line 39 def status @status end |
#time ⇒ Object
Returns the value of attribute time.
39 40 41 |
# File 'lib/ci_status/cruise_control.rb', line 39 def time @time end |
#url ⇒ Object
Returns the value of attribute url.
39 40 41 |
# File 'lib/ci_status/cruise_control.rb', line 39 def url @url end |
Instance Method Details
#failure? ⇒ Boolean
49 50 51 |
# File 'lib/ci_status/cruise_control.rb', line 49 def failure? status == "Failure" end |
#success? ⇒ Boolean
45 46 47 |
# File 'lib/ci_status/cruise_control.rb', line 45 def success? status == "Success" end |