Class: Gaku::Grading::Single::BaseMethod
- Inherits:
-
Object
- Object
- Gaku::Grading::Single::BaseMethod
- Defined in:
- lib/gaku/grading/single/base_method.rb
Instance Attribute Summary collapse
-
#criteria ⇒ Object
readonly
Returns the value of attribute criteria.
-
#gradable ⇒ Object
readonly
Returns the value of attribute gradable.
-
#gradable_scope ⇒ Object
readonly
Returns the value of attribute gradable_scope.
-
#gradable_type ⇒ Object
readonly
Returns the value of attribute gradable_type.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
-
#student ⇒ Object
readonly
Returns the value of attribute student.
Instance Method Summary collapse
-
#grade ⇒ Object
Obtain graded hash of results.
-
#initialize(gradable, student, gradable_scope, criteria = nil) ⇒ BaseMethod
constructor
Pass a gradable object [exam or assignment] and students.
Constructor Details
#initialize(gradable, student, gradable_scope, criteria = nil) ⇒ BaseMethod
Pass a gradable object [exam or assignment] and students
8 9 10 11 12 13 14 |
# File 'lib/gaku/grading/single/base_method.rb', line 8 def initialize(gradable, student, gradable_scope, criteria = nil) @gradable = gradable @student = student @criteria = criteria @gradable_scope = gradable_scope @result = {} end |
Instance Attribute Details
#criteria ⇒ Object (readonly)
Returns the value of attribute criteria.
5 6 7 |
# File 'lib/gaku/grading/single/base_method.rb', line 5 def criteria @criteria end |
#gradable ⇒ Object (readonly)
Returns the value of attribute gradable.
5 6 7 |
# File 'lib/gaku/grading/single/base_method.rb', line 5 def gradable @gradable end |
#gradable_scope ⇒ Object (readonly)
Returns the value of attribute gradable_scope.
5 6 7 |
# File 'lib/gaku/grading/single/base_method.rb', line 5 def gradable_scope @gradable_scope end |
#gradable_type ⇒ Object (readonly)
Returns the value of attribute gradable_type.
5 6 7 |
# File 'lib/gaku/grading/single/base_method.rb', line 5 def gradable_type @gradable_type end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
5 6 7 |
# File 'lib/gaku/grading/single/base_method.rb', line 5 def result @result end |
#student ⇒ Object (readonly)
Returns the value of attribute student.
5 6 7 |
# File 'lib/gaku/grading/single/base_method.rb', line 5 def student @student end |