Sha256: 7ae15d45129fd2f39c4926b991c695c23e56602e359d4052482acbabe6569f3d

Contents?: true

Size: 402 Bytes

Versions: 1

Compression:

Stored size: 402 Bytes

Contents

module Bugsnag
  class Configuration
    @@options = :api_key, :release_stage, :endpoint, :project_root, :logger
    @@options.each do |attribute|
      attr_accessor attribute
    end

    def initialize
      @endpoint = "http://api.bugsnag.com/notify"
    end

    def to_hash
      @@options.inject({}) do |hash, option|
        hash.merge(option.to_sym => send(option))
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bugsnag-1.0.0 lib/bugsnag/configuration.rb