Class: AgileNotifier::CI::Job::Build
- Inherits:
-
Object
- Object
- AgileNotifier::CI::Job::Build
- Includes:
- Trackable
- Defined in:
- lib/agile_notifier/ci.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#number ⇒ Object
Returns the value of attribute number.
-
#result ⇒ Object
Returns the value of attribute result.
-
#revision ⇒ Object
Returns the value of attribute revision.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
- #get_previous_build ⇒ Object
- #get_previous_result ⇒ Object
- #get_result ⇒ Object
- #get_revision ⇒ Object
-
#initialize(number, url) ⇒ Build
constructor
A new instance of Build.
- #is_building? ⇒ Boolean
Methods included from Trackable
#failed?, #fixed?, #passed?, #unstable?
Constructor Details
#initialize(number, url) ⇒ Build
Returns a new instance of Build.
42 43 44 45 46 47 |
# File 'lib/agile_notifier/ci.rb', line 42 def initialize(number, url) @number = number @url = url @result = get_result @revision = get_revision end |
Instance Attribute Details
#number ⇒ Object
Returns the value of attribute number.
40 41 42 |
# File 'lib/agile_notifier/ci.rb', line 40 def number @number end |
#result ⇒ Object
Returns the value of attribute result.
40 41 42 |
# File 'lib/agile_notifier/ci.rb', line 40 def result @result end |
#revision ⇒ Object
Returns the value of attribute revision.
40 41 42 |
# File 'lib/agile_notifier/ci.rb', line 40 def revision @revision end |
#url ⇒ Object
Returns the value of attribute url.
40 41 42 |
# File 'lib/agile_notifier/ci.rb', line 40 def url @url end |
Instance Method Details
#get_previous_build ⇒ Object
61 62 63 |
# File 'lib/agile_notifier/ci.rb', line 61 def get_previous_build raise(NotImplementedError, "Abstract method [#{__method__}] is called, please implement", caller) end |
#get_previous_result ⇒ Object
65 66 67 |
# File 'lib/agile_notifier/ci.rb', line 65 def get_previous_result raise(NotImplementedError, "Abstract method [#{__method__}] is called, please implement", caller) end |
#get_result ⇒ Object
53 54 55 |
# File 'lib/agile_notifier/ci.rb', line 53 def get_result raise(NotImplementedError, "Abstract method [#{__method__}] is called, please implement", caller) end |
#get_revision ⇒ Object
57 58 59 |
# File 'lib/agile_notifier/ci.rb', line 57 def get_revision raise(NotImplementedError, "Abstract method [#{__method__}] is called, please implement", caller) end |
#is_building? ⇒ Boolean
49 50 51 |
# File 'lib/agile_notifier/ci.rb', line 49 def is_building? raise(NotImplementedError, "Abstract method [#{__method__}] is called, please implement", caller) end |