Class: TheArrayComparator::Result

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

Overview

the check result

Instance Method Summary collapse

Constructor Details

#initialize(sample = nil) ⇒ Result

Returns a new instance of Result.



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

def initialize(sample=nil)
  @sample = sample
end

Instance Method Details

#failed_sampleObject



16
17
18
# File 'lib/the_array_comparator/result.rb', line 16

def failed_sample
  @sample || null_sample
end

#of_checksObject



11
12
13
14
# File 'lib/the_array_comparator/result.rb', line 11

def of_checks
  return true if @sample.blank?
  false
end