Sha256: 0798a1692b1bb8dc54b9fcdddb65b2b2c14650f9ae293d3a695d9082e4942be8

Contents?: true

Size: 426 Bytes

Versions: 101

Compression:

Stored size: 426 Bytes

Contents

class Mumuki::Domain::Submission::ConsoleSubmission < Mumuki::Domain::Submission::Base
  required :try_evaluate_query!

  def try_evaluate!(assignment)
    format_query_result! try_evaluate_query!(assignment)
  end

  def format_query_result!(results)
    results[:result] = I18n.t('console_submission.try_again') if results[:status].aborted?
    results[:status] = results[:status].to_submission_status
    results
  end
end

Version data entries

101 entries across 101 versions & 2 rubygems

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