Module: SphereEngine::REST::TestCases
Instance Method Summary collapse
- #create_problem_testcase(problem_id, options = {}) ⇒ Object
- #get_testcase(problem_id, testcase_id) ⇒ Object
- #get_testcase_file(problem_id, testcase_id, filename) ⇒ Object
- #list_testcases(problem_id) ⇒ Object
Instance Method Details
#create_problem_testcase(problem_id, options = {}) ⇒ Object
13 14 15 |
# File 'lib/sphere_engine/rest/test_cases.rb', line 13 def create_problem_testcase(problem_id, = {}) perform_post_requests_of_problems_service("/problems/#{problem_id}/testcases", ) end |
#get_testcase(problem_id, testcase_id) ⇒ Object
19 20 21 |
# File 'lib/sphere_engine/rest/test_cases.rb', line 19 def get_testcase(problem_id, testcase_id) perform_get_requests_of_problems_service("/problems/#{problem_id}/testcases/#{testcase_id}") end |
#get_testcase_file(problem_id, testcase_id, filename) ⇒ Object
26 27 28 29 30 |
# File 'lib/sphere_engine/rest/test_cases.rb', line 26 def get_testcase_file(problem_id, testcase_id, filename) perform_get_requests_of_problems_service( "/problems/#{problem_id}/testcases/#{testcase_id}/#{filename}" ) end |
#list_testcases(problem_id) ⇒ Object
7 8 9 |
# File 'lib/sphere_engine/rest/test_cases.rb', line 7 def list_testcases(problem_id) perform_get_requests_of_problems_service("/problems/#{problem_id}/testcases") end |