Module: Queriable

Included in:
QueriableChallenge
Defined in:
app/models/concerns/submittable/queriable.rb

Instance Method Summary collapse

Instance Method Details

#run_query!(params) ⇒ Object



6
7
8
# File 'app/models/concerns/submittable/queriable.rb', line 6

def run_query!(params)
  language.run_query!(params)
end

#submit_query!(user, attributes) ⇒ Object



2
3
4
# File 'app/models/concerns/submittable/queriable.rb', line 2

def submit_query!(user, attributes)
  submit! user, Mumuki::Domain::Submission::Query.new(attributes)
end