Class: StudFinder::Gate::Result
- Inherits:
-
Struct
- Object
- Struct
- StudFinder::Gate::Result
- Defined in:
- lib/stud_finder/gate.rb
Instance Attribute Summary collapse
-
#checks ⇒ Object
Returns the value of attribute checks.
Instance Method Summary collapse
Instance Attribute Details
#checks ⇒ Object
Returns the value of attribute checks
12 13 14 |
# File 'lib/stud_finder/gate.rb', line 12 def checks @checks end |
Instance Method Details
#finding_count ⇒ Object
13 14 15 |
# File 'lib/stud_finder/gate.rb', line 13 def finding_count checks.values.sum(&:length) end |
#findings? ⇒ Boolean
17 18 19 |
# File 'lib/stud_finder/gate.rb', line 17 def findings? finding_count.positive? end |