Exception: Contrast::MatchingException

Inherits:
StandardError
  • Object
show all
Defined in:
lib/contrast/matching_exception.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#resultsObject

Returns the value of attribute results.



4
5
6
# File 'lib/contrast/matching_exception.rb', line 4

def results
  @results
end

Instance Method Details

#to_sObject



5
6
7
8
# File 'lib/contrast/matching_exception.rb', line 5

def to_s
  return 'The results did not match, but I cannot tell you why.' if results.nil? || results.empty?
  return self.results.ai
end