Class: Flog::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



7
8
9
10
11
12
# File 'lib/flog/configuration.rb', line 7

def initialize
  @ignore_cached_query = true
  @query_duration_threshold = 0.0
  @params_key_count_threshold = 1
  @force_on_nested_params = true
end

Instance Attribute Details

#force_on_nested_params=(value) ⇒ Object (writeonly)

Sets the attribute force_on_nested_params

Parameters:

  • value

    the value to set the attribute force_on_nested_params to.



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

def force_on_nested_params=(value)
  @force_on_nested_params = value
end

#ignore_cached_query=(value) ⇒ Object (writeonly)

Sets the attribute ignore_cached_query

Parameters:

  • value

    the value to set the attribute ignore_cached_query to.



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

def ignore_cached_query=(value)
  @ignore_cached_query = value
end

#params_key_count_thresholdObject

Returns the value of attribute params_key_count_threshold.



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

def params_key_count_threshold
  @params_key_count_threshold
end

#query_duration_thresholdObject

Returns the value of attribute query_duration_threshold.



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

def query_duration_threshold
  @query_duration_threshold
end

Instance Method Details

#force_on_nested_params?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/flog/configuration.rb', line 18

def force_on_nested_params?
  !!@force_on_nested_params
end

#ignore_cached_query?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/flog/configuration.rb', line 14

def ignore_cached_query?
  !!@ignore_cached_query
end