class Query

Attributes

instant_execution[RW]

Public Instance Methods

run_query() click to toggle source
# File natural-backend/app/models/query.rb, line 8
def run_query
  ::RunQueryJob.perform_now(self)
  response_data
end

Private Instance Methods

trigger_run_query() click to toggle source
# File natural-backend/app/models/query.rb, line 15
def trigger_run_query
  unless instant_execution
    RunQueryJob.perform_later(self)
  end
end