Class: Rack::Honeycomb::Railtie

Inherits:
Rails::Railtie
  • Object
show all
Defined in:
lib/rack-honeycomb/railtie.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.honeycomb_clientObject (readonly)

Returns the value of attribute honeycomb_client.



7
8
9
# File 'lib/rack-honeycomb/railtie.rb', line 7

def honeycomb_client
  @honeycomb_client
end

.loggerObject (readonly)

Returns the value of attribute logger.



7
8
9
# File 'lib/rack-honeycomb/railtie.rb', line 7

def logger
  @logger
end

Class Method Details

.init(honeycomb_client:, logger: nil) ⇒ Object



9
10
11
12
13
14
# File 'lib/rack-honeycomb/railtie.rb', line 9

def init(honeycomb_client:, logger: nil)
  @honeycomb_client = honeycomb_client
  @logger = logger

  logger.debug "#{self}: initialized with #{honeycomb_client.class}" if logger
end