Class: Mumuki::Domain::Submission::Question
- Inherits:
-
Base
- Object
- Base
- Mumuki::Domain::Submission::Question
show all
- Defined in:
- lib/mumuki/domain/submission/question.rb
Constant Summary
Constants inherited
from Base
Base::ATTRIBUTES
Instance Attribute Summary
Attributes inherited from Base
#client_result
Instance Method Summary
collapse
Methods inherited from Base
#dry_run!, #evaluate!, from_attributes, #id, mapping_attributes, #with_client_result
Instance Method Details
#run!(assignment, evaluation) ⇒ Object
2
3
4
5
|
# File 'lib/mumuki/domain/submission/question.rb', line 2
def run!(assignment, evaluation)
return [assignment, nil] unless assignment.new_record?
super
end
|
#save_submission!(assignment) ⇒ Object
7
8
|
# File 'lib/mumuki/domain/submission/question.rb', line 7
def save_submission!(assignment)
end
|
#try_evaluate! ⇒ Object
10
11
12
|
# File 'lib/mumuki/domain/submission/question.rb', line 10
def try_evaluate!(*)
{status: :pending, result: nil}
end
|