Sha256: db5156590f5717d7c344330eb9a03044c34b28a969dc8f6f0d14e098118e03a9

Contents?: true

Size: 928 Bytes

Versions: 3

Compression:

Stored size: 928 Bytes

Contents

module SphereEngine
  module REST
    module Submissions
      include SphereEngine::REST::Utils

      # @param options [Hash]
      # This request you should send a compilerId and source
      def create_submission_compiler(options = {})
        perform_post_requests_of_compĂ­lers_service('/submissions', options)
      end

      # @param options [Hash]
      # This request you should send a submissionId
      def fetch_submission_compilers(submission_id, options = {})
        perform_get_requests_of_compĂ­lers_service("/submissions/#{submission_id}")
      end

      # @param options [Hash]
      def create_submission_problem(options = {})
        perform_post_requests_of_problems_service('/submissions', options)
      end

      # @param options [Hash]
      def fetch_submission_problems(submission_id)
        perform_get_requests_of_problems_service("/submissions/#{submission_id}")
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sphere_engine-1.1.0 lib/sphere_engine/rest/submissions.rb
sphere_engine-1.0.0 lib/sphere_engine/rest/submissions.rb
sphere_engine-1.3.0.pre lib/sphere_engine/rest/submissions.rb