Sha256: e6080301b1d56b2c4a8288a714d20d82a175fc46ad78edb926939d7dc8d385ff
Contents?: true
Size: 1.03 KB
Versions: 2
Compression:
Stored size: 1.03 KB
Contents
module SphereEngine module REST module TestCases include SphereEngine::REST::Utils # @param problem_id [String] def list_testcases(problem_id) perform_get_requests_of_problems_service("/problems/#{problem_id}/testcases") end # @param problem_id [String] # @options [Hash] def create_problem_testcase(problem_id, options = {}) perform_post_requests_of_problems_service("/problems/#{problem_id}/testcases", options) end # @param problem_id [String] # @param testcase_id [String] def get_testcase(problem_id, testcase_id) perform_get_requests_of_problems_service("/problems/#{problem_id}/testcases/#{testcase_id}") end # @param problem_id [String] # @param testcase_id [String] # @param filename [String] def get_testcase_file(problem_id, testcase_id, filename) perform_get_requests_of_problems_service( "/problems/#{problem_id}/testcases/#{testcase_id}/#{filename}" ) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sphere_engine-1.0.0 | lib/sphere_engine/rest/test_cases.rb |
sphere_engine-1.3.0.pre | lib/sphere_engine/rest/test_cases.rb |