class NCTU::OJ::Client
- NCTU::OJ::Client
- Reference
- Object
Defined in:
client/client.crConstant Summary
-
VERSION =
"0.1.0"
Constructors
Instance Method Summary
- #clear_test_data(problem_id)
- #delete(path : String)
- #execute(id)
- #file(submission_id)
- #get(path : String, params : Hash(String, Array(String)))
- #get(path : String, params : HTTP::Params | Nil = nil)
- #input_file(test_data_id)
- #output_file(test_data_id)
- #post(path : String, body : Hash(String, Array(String)) | IO = IO::Memory.new, content_type : String | Nil = nil)
- #problems
- #rejudge(id)
- #submission(id)
- #submissions(problem_id, verdict_name = "")
- #test_data(problem_id)
- #upload_test_data(problem_id, sample, input, output, time_limit, memory_limit, output_limit, score)
- #users
Constructor Detail
Instance Method Detail
def post(path : String, body : Hash(String, Array(String)) | IO = IO::Memory.new, content_type : String | Nil = nil)
#
def upload_test_data(problem_id, sample, input, output, time_limit, memory_limit, output_limit, score)
#