Class: BuilderApm::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/builder_apm/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



12
13
14
15
16
17
18
19
20
21
# File 'lib/builder_apm/configuration.rb', line 12

def initialize
  @redis_url = 'redis://localhost:6379/0'
  @enable_controller_profiler = true
  @enable_active_record_profiler = true
  @enable_methods_profiler = true
  @enable_n_plus_one_profiler = true
  @api_key = nil
  @api = 'Bravo'
  @gems_to_track = []
end

Instance Attribute Details

#apiObject

Returns the value of attribute api.



9
10
11
# File 'lib/builder_apm/configuration.rb', line 9

def api
  @api
end

#api_keyObject

Returns the value of attribute api_key.



8
9
10
# File 'lib/builder_apm/configuration.rb', line 8

def api_key
  @api_key
end

#enable_active_record_profilerObject

Returns the value of attribute enable_active_record_profiler.



5
6
7
# File 'lib/builder_apm/configuration.rb', line 5

def enable_active_record_profiler
  @enable_active_record_profiler
end

#enable_controller_profilerObject

Returns the value of attribute enable_controller_profiler.



4
5
6
# File 'lib/builder_apm/configuration.rb', line 4

def enable_controller_profiler
  @enable_controller_profiler
end

#enable_methods_profilerObject

Returns the value of attribute enable_methods_profiler.



6
7
8
# File 'lib/builder_apm/configuration.rb', line 6

def enable_methods_profiler
  @enable_methods_profiler
end

#enable_n_plus_one_profilerObject

Returns the value of attribute enable_n_plus_one_profiler.



7
8
9
# File 'lib/builder_apm/configuration.rb', line 7

def enable_n_plus_one_profiler
  @enable_n_plus_one_profiler
end

#gems_to_trackObject

Returns the value of attribute gems_to_track.



10
11
12
# File 'lib/builder_apm/configuration.rb', line 10

def gems_to_track
  @gems_to_track
end

#redis_urlObject

Returns the value of attribute redis_url.



3
4
5
# File 'lib/builder_apm/configuration.rb', line 3

def redis_url
  @redis_url
end