Module: CortexClient

Defined in:
lib/cortex_client.rb,
lib/cortex_client/version.rb,
lib/cortex_client/exception.rb,
lib/cortex_client/http/agent.rb,
lib/cortex_client/http/request.rb,
lib/cortex_client/configuration.rb,
lib/cortex_client/http/response.rb,
lib/cortex_client/metric/metric.rb

Defined Under Namespace

Modules: Exception, Http Classes: Configuration, Metric

Constant Summary collapse

VERSION =
'0.1.3'.freeze

Class Method Summary collapse

Class Method Details

.configurationObject



33
34
35
# File 'lib/cortex_client/configuration.rb', line 33

def self.configuration
  @configuration ||= Configuration.new
end

.configure {|configuration| ... } ⇒ Object



37
38
39
40
# File 'lib/cortex_client/configuration.rb', line 37

def self.configure
  yield(configuration)
  raise Exception::Configuration unless configuration.valid?
end