Module: CtRegisterMicroservice

Defined in:
lib/ct_register_microservice.rb,
lib/ct_register_microservice/engine.rb,
lib/ct_register_microservice/errors.rb,
lib/ct_register_microservice/version.rb,
lib/ct_register_microservice/http_service.rb,
lib/ct_register_microservice/control_tower.rb,
app/helpers/ct_register_microservice/info_helper.rb,
lib/ct_register_microservice/http_service/endpoint.rb,
lib/ct_register_microservice/http_service/response.rb,
app/helpers/ct_register_microservice/application_helper.rb,
app/controllers/ct_register_microservice/info_controller.rb,
app/controllers/ct_register_microservice/application_controller.rb

Defined Under Namespace

Modules: ApplicationHelper, HTTPService, InfoHelper Classes: APIError, AppSecretNotDefinedError, ApplicationController, AuthenticationError, BadCTResponse, ClientError, ControlTower, CtRegisterMicroserviceError, Engine, InfoController, MissingConfigError, NoTokenError, NotFoundError, OAuthTokenRequestError, ServerError

Constant Summary collapse

VERSION =
'1.4.0'
Endpoint =
HTTPService::Endpoint
Response =
HTTPService::Response

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configObject

Returns the value of attribute config.



10
11
12
# File 'lib/ct_register_microservice.rb', line 10

def config
  @config
end

.http_serviceObject

Returns the value of attribute http_service.



10
11
12
# File 'lib/ct_register_microservice.rb', line 10

def http_service
  @http_service
end

Class Method Details

.configure {|config| ... } ⇒ Object

Yields:



12
13
14
# File 'lib/ct_register_microservice.rb', line 12

def configure
  yield config
end

.make_request(options, credentials = {}) ⇒ Object



25
26
27
# File 'lib/ct_register_microservice.rb', line 25

def self.make_request(options, credentials = {})
  http_service.make_request(options, credentials)
end