Sha256: 8c58f547da2b44ec2cfe48f6249052cd02114ca27995b435722ef928364c8584
Contents?: true
Size: 591 Bytes
Versions: 3
Compression:
Stored size: 591 Bytes
Contents
module CodewarsApi class FinalizeSolution include Common def initialize(options) api_key = options.delete!(:api_key) project_id = options.delete!(:project_id) solution_id = options.delete!(:solution_id) request_options = {} request_options = RequestHelper.add_api_key(request_options, api_key) @response = RequestHelper.post( "#{CodewarsApi::API_URL}"\ "/code-challenges/projects/#{project_id}/solutions/#{solution_id}/finalize", request_options ) ResponseChecker.check_errors(@response) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
codewars_api-0.4.2 | lib/codewars_api/finalize_solution.rb |
codewars_api-0.4.1 | lib/codewars_api/finalize_solution.rb |
codewars_api-0.4.0 | lib/codewars_api/finalize_solution.rb |