class RollbarConfig

Attributes

client_token[R]
environment[R]
server_token[R]

Public Class Methods

new(config) click to toggle source
# File lib/production_toolkit/rollbar_configurator.rb, line 6
def initialize(config)
  @enabled = config.fetch(:enabled, false)
  if enabled?
    @server_token = config.fetch(:server_token)
    @client_token = config.fetch(:client_token)
    @environment  = config.fetch(:environment)
  end
end

Public Instance Methods

enabled?() click to toggle source
# File lib/production_toolkit/rollbar_configurator.rb, line 15
def enabled?
  @enabled
end