Module: SphereEngine::REST::Submissions

Includes:
Utils
Included in:
API
Defined in:
lib/sphere_engine/rest/submissions.rb

Instance Method Summary collapse

Instance Method Details

#create_submission_compiler(options = {}) ⇒ Object

This request you should send a compilerId and source

Parameters:

  • options (Hash) (defaults to: {})


8
9
10
# File 'lib/sphere_engine/rest/submissions.rb', line 8

def create_submission_compiler(options = {})
  perform_post_requests_of_comp

#create_submission_problem(options = {}) ⇒ Object

Parameters:

  • options (Hash) (defaults to: {})


19
20
21
# File 'lib/sphere_engine/rest/submissions.rb', line 19

def create_submission_problem(options = {})
  perform_post_requests_of_problems_service('/submissions', options)
end

#fetch_submission_compilers(submission_id, options = {}) ⇒ Object

This request you should send a submissionId

Parameters:

  • options (Hash) (defaults to: {})


14
15
16
# File 'lib/sphere_engine/rest/submissions.rb', line 14

def fetch_submission_compilers(submission_id, options = {})
  perform_get_requests_of_comp

#fetch_submission_problems(submission_id) ⇒ Object

Parameters:

  • options (Hash)


24
25
26
# File 'lib/sphere_engine/rest/submissions.rb', line 24

def fetch_submission_problems(submission_id)
  perform_get_requests_of_problems_service("/submissions/#{submission_id}")
end