Class: StudFinder::Gate::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/stud_finder/gate.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#checksObject

Returns the value of attribute checks

Returns:

  • (Object)

    the current value of checks



12
13
14
# File 'lib/stud_finder/gate.rb', line 12

def checks
  @checks
end

Instance Method Details

#finding_countObject



13
14
15
# File 'lib/stud_finder/gate.rb', line 13

def finding_count
  checks.values.sum(&:length)
end

#findings?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/stud_finder/gate.rb', line 17

def findings?
  finding_count.positive?
end