Class: LeeroyJenkins::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/leeroy_jenkins/result.rb

Instance Method Summary collapse

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_sObject



7
8
9
# File 'lib/leeroy_jenkins/result.rb', line 7

def to_s
  JSON.pretty_generate(result_hashes)
end