Class: Codelocks::Request
Class Method Summary collapse
-
.create(path, params = {}) ⇒ Codelocks::NetCode::Response
Perform a request against the NetCode API.
Methods inherited from Model
Class Method Details
.create(path, params = {}) ⇒ Codelocks::NetCode::Response
Perform a request against the NetCode API
11 12 13 14 15 16 17 |
# File 'lib/codelocks/request.rb', line 11 def create(path, params = {}) response = client.connection.get(path, default_params.merge(params)) do |req| req.headers['x-api-key'] = client.api_key end Response.new(response) end |