Sha256: 74068279619c7e424b580e7e7979bb76f436301a662cad14bd4a05f31298a7c6
Contents?: true
Size: 499 Bytes
Versions: 4
Compression:
Stored size: 499 Bytes
Contents
require 'httparty' module CodewarsApi module RequestHelper include HTTParty base_uri CodewarsApi::BASE_URL def self.add_api_key(request_options, api_key) request_options = request_options.dup request_options[:headers] = { 'Authorization' => api_key } request_options end def self.add_body_options(request_options, body_options) request_options = request_options.dup request_options[:body] = body_options request_options end end end
Version data entries
4 entries across 4 versions & 1 rubygems