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
- #update_problem_testcase(problem_id, testcase_id, options = {}) ⇒ 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
26 27 28 |
# File 'lib/sphere_engine/rest/test_cases.rb', line 26 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
33 34 35 36 37 |
# File 'lib/sphere_engine/rest/test_cases.rb', line 33 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 |
#update_problem_testcase(problem_id, testcase_id, options = {}) ⇒ Object
20 21 22 |
# File 'lib/sphere_engine/rest/test_cases.rb', line 20 def update_problem_testcase(problem_id, testcase_id, = {}) perform_put_requests_of_problems_service("/problems/#{problem_id}/testcases/#{testcase_id}", ) end |