Sha256: 84cc05bdd0b93b971732f1ff8066f4d8ee003f477e31dce866b4d59b49d00cf6

Contents?: true

Size: 391 Bytes

Versions: 4

Compression:

Stored size: 391 Bytes

Contents

module Opsgenie
  module Heartbeat
    class<<self
      attr_accessor :configuration
    end
    def self.configure
      self.configuration ||= Config.new
      yield(configuration)
    end

    class Config
      attr_accessor :enabled, :api_key, :name_transformer, :logger, :raise_error

      def name_transformer
        @name_transformer || ->(name){name}
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
opsgenie-heartbeat-0.2.1 lib/opsgenie/heartbeat/config.rb
opsgenie-heartbeat-0.2.0 lib/opsgenie/heartbeat/config.rb
opsgenie-heartbeat-0.1.2 lib/opsgenie/heartbeat/config.rb
opsgenie-heartbeat-0.1.1 lib/opsgenie/heartbeat/config.rb