Class: Flog::Configuration
- Inherits:
-
Object
- Object
- Flog::Configuration
- Defined in:
- lib/flog/configuration.rb
Instance Attribute Summary collapse
-
#force_on_nested_params ⇒ Object
writeonly
Sets the attribute force_on_nested_params.
-
#ignore_cached_query ⇒ Object
writeonly
Sets the attribute ignore_cached_query.
-
#params_key_count_threshold ⇒ Object
Returns the value of attribute params_key_count_threshold.
-
#query_duration_threshold ⇒ Object
Returns the value of attribute query_duration_threshold.
Instance Method Summary collapse
- #force_on_nested_params? ⇒ Boolean
- #ignore_cached_query? ⇒ Boolean
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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
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
4 5 6 |
# File 'lib/flog/configuration.rb', line 4 def ignore_cached_query=(value) @ignore_cached_query = value end |
#params_key_count_threshold ⇒ Object
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_threshold ⇒ Object
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
18 19 20 |
# File 'lib/flog/configuration.rb', line 18 def force_on_nested_params? !!@force_on_nested_params end |
#ignore_cached_query? ⇒ Boolean
14 15 16 |
# File 'lib/flog/configuration.rb', line 14 def ignore_cached_query? !!@ignore_cached_query end |