Sha256: 71747dc9797fba78652f33053b95e2207be87b3332671b85b9b889a0d385e2af
Contents?: true
Size: 495 Bytes
Versions: 1
Compression:
Stored size: 495 Bytes
Contents
# frozen_string_literal: true module Stackeye class Configuration MAX_DATA ||= 288 METRICS ||= %w[server mysql].freeze attr_accessor :credentials, :max_data, :metrics def initialize @max_data = MAX_DATA @metrics = METRICS @credentials = {} end end def self.configuration @configuration ||= Configuration.new end def self.configuration=(config) @configuration = config end def self.configure yield(configuration) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stackeye-0.1.0 | lib/stackeye/configuration.rb |