Module: Mumuki::Domain::Status::Submission
Defined Under Namespace
Modules: Aborted, Errored, Failed, ManualEvaluationPending, Passed, PassedWithWarnings, Pending, Running, Skipped
Constant Summary
collapse
- STATUSES =
[Pending, Running, Passed, Failed, Errored, Aborted, PassedWithWarnings, ManualEvaluationPending, Skipped]
Instance Method Summary
collapse
#==, #as_json, #dup, #to_i, #to_s, #to_sym
Instance Method Details
#completed? ⇒ Boolean
34
35
36
|
# File 'lib/mumuki/domain/status/submission/submission.rb', line 34
def completed?
solved?
end
|
#exp_given ⇒ Object
46
47
48
|
# File 'lib/mumuki/domain/status/submission/submission.rb', line 46
def exp_given
0
end
|
#group ⇒ Object
22
23
24
|
# File 'lib/mumuki/domain/status/submission/submission.rb', line 22
def group
self
end
|
#iconize ⇒ Object
30
31
32
|
# File 'lib/mumuki/domain/status/submission/submission.rb', line 30
def iconize
group.iconize
end
|
#improved_by?(status) ⇒ Boolean
42
43
44
|
# File 'lib/mumuki/domain/status/submission/submission.rb', line 42
def improved_by?(status)
self.exp_given < status.exp_given
end
|
#should_retry? ⇒ Boolean
26
27
28
|
# File 'lib/mumuki/domain/status/submission/submission.rb', line 26
def should_retry?
false
end
|
#solved? ⇒ Boolean
38
39
40
|
# File 'lib/mumuki/domain/status/submission/submission.rb', line 38
def solved?
passed? || skipped?
end
|