Class: Mumuki::Domain::Submission::Solution
- Inherits:
-
PersistentSubmission
- Object
- Base
- PersistentSubmission
- Mumuki::Domain::Submission::Solution
- Defined in:
- lib/mumuki/domain/submission/solution.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from PersistentSubmission
Methods inherited from Base
#evaluate!, from_attributes, #id, mapping_attributes, #run!, #with_client_result
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
2 3 4 |
# File 'lib/mumuki/domain/submission/solution.rb', line 2 def content @content end |
Instance Method Details
#dry_run!(assignment, evaluation) ⇒ Object
4 5 6 |
# File 'lib/mumuki/domain/submission/solution.rb', line 4 def dry_run!(assignment, evaluation) evaluation.evaluate! assignment, self end |
#try_evaluate!(assignment) ⇒ Object
8 9 10 11 12 |
# File 'lib/mumuki/domain/submission/solution.rb', line 8 def try_evaluate!(assignment) assignment .run_tests!({client_result: client_result}.compact.merge(content: content)) .except(:response_type) end |