Sha256: a87d85220642185387c0835123925d71ffae7b31682507e687d70165acb42eaf

Contents?: true

Size: 507 Bytes

Versions: 18

Compression:

Stored size: 507 Bytes

Contents

class Mumuki::Domain::Submission::Query < Mumuki::Domain::Submission::ConsoleSubmission
  attr_accessor :query, :cookie, :content

  def try_evaluate_query!(assignment)
    assignment.run_query!(content: content, query: query, cookie: cookie)
  end

  def save_submission!(assignment)
    assignment.exercise.save_query_submission!(assignment, self)
    super
  end

  def save_results!(_results, assignment)
    assignment.exercise.save_query_results!(assignment)
  end

  def notify_results!(*)
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
mumuki-domain-9.23.0 lib/mumuki/domain/submission/query.rb
mumuki-domain-9.22.1 lib/mumuki/domain/submission/query.rb
mumuki-domain-9.22.0 lib/mumuki/domain/submission/query.rb
mumuki-domain-9.21.0 lib/mumuki/domain/submission/query.rb
mumuki-domain-9.20.0 lib/mumuki/domain/submission/query.rb
mumuki-domain-9.19.0 lib/mumuki/domain/submission/query.rb
mumuki-domain-9.18.0 lib/mumuki/domain/submission/query.rb
mumuki-domain-9.17.0 lib/mumuki/domain/submission/query.rb
mumuki-domain-9.16.0 lib/mumuki/domain/submission/query.rb
mumuki-domain-9.15.0 lib/mumuki/domain/submission/query.rb
mumuki-domain-9.14.1 lib/mumuki/domain/submission/query.rb
mumuki-domain-9.14.0 lib/mumuki/domain/submission/query.rb
mumuki-domain-9.13.1 lib/mumuki/domain/submission/query.rb
mumuki-domain-9.13.0 lib/mumuki/domain/submission/query.rb
mumuki-domain-9.12.0 lib/mumuki/domain/submission/query.rb
mumuki-domain-9.11.0 lib/mumuki/domain/submission/query.rb
mumuki-domain-9.10.0 lib/mumuki/domain/submission/query.rb
mumuki-domain-9.9.0 lib/mumuki/domain/submission/query.rb