Sha256: 31b55da25e4df2732565c5b1802fc1479be1f2e2ae7224e24968c50bb2adb0e5
Contents?: true
Size: 599 Bytes
Versions: 1
Compression:
Stored size: 599 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 ) fail @response.message if @response.code == 500 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
codewars_api-0.3.0 | lib/codewars_api/finalize_solution.rb |