Class: LeeroyJenkins::Result
- Inherits:
-
Object
- Object
- LeeroyJenkins::Result
- Defined in:
- lib/leeroy_jenkins/result.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(result_hashes) ⇒ Result
constructor
A new instance of Result.
- #to_s ⇒ Object
Constructor Details
#initialize(result_hashes) ⇒ Result
Returns a new instance of Result.
3 4 5 |
# File 'lib/leeroy_jenkins/result.rb', line 3 def initialize(result_hashes) @result_hashes = result_hashes end |
Instance Method Details
#==(other) ⇒ Object
11 12 13 |
# File 'lib/leeroy_jenkins/result.rb', line 11 def ==(other) other.class == self.class && result_hashes == other.result_hashes end |
#to_s ⇒ Object
7 8 9 |
# File 'lib/leeroy_jenkins/result.rb', line 7 def to_s JSON.pretty_generate(result_hashes) end |