Class: Gaku::Grading::Collection::Score

Inherits:
BaseMethod
  • Object
show all
Defined in:
lib/gaku/grading/collection/score.rb

Instance Attribute Summary

Attributes inherited from BaseMethod

#criteria, #gradable, #gradable_scope, #gradable_type, #results, #students

Instance Method Summary collapse

Methods inherited from BaseMethod

#grade, #initialize

Constructor Details

This class inherits a constructor from Gaku::Grading::Collection::BaseMethod

Instance Method Details

#grade_examObject



3
4
5
6
7
8
# File 'lib/gaku/grading/collection/score.rb', line 3

def grade_exam
  @students.each do |student|
    @result << Gaku::Grading::Single::Score.new(@gradable, student, gradable_scope).grade_exam
  end
  @result
end