Class: Revelio::Config
- Inherits:
-
Object
- Object
- Revelio::Config
- Defined in:
- lib/revelio/config.rb
Instance Attribute Summary collapse
-
#debug_mode ⇒ Object
Returns the value of attribute debug_mode.
-
#duration_threshold ⇒ Object
Returns the value of attribute duration_threshold.
-
#gc_objects_threshold ⇒ Object
Returns the value of attribute gc_objects_threshold.
-
#inject_overlay ⇒ Object
Returns the value of attribute inject_overlay.
-
#project_root ⇒ Object
Returns the value of attribute project_root.
-
#queries_threshold ⇒ Object
Returns the value of attribute queries_threshold.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #thresholds ⇒ Object
Constructor Details
#initialize ⇒ Config
8 9 10 11 12 13 14 15 |
# File 'lib/revelio/config.rb', line 8 def initialize @debug_mode = false @project_root = nil = true @duration_threshold = 200 @queries_threshold = 20 @gc_objects_threshold = 100_000 end |
Instance Attribute Details
#debug_mode ⇒ Object
Returns the value of attribute debug_mode.
5 6 7 |
# File 'lib/revelio/config.rb', line 5 def debug_mode @debug_mode end |
#duration_threshold ⇒ Object
Returns the value of attribute duration_threshold.
5 6 7 |
# File 'lib/revelio/config.rb', line 5 def duration_threshold @duration_threshold end |
#gc_objects_threshold ⇒ Object
Returns the value of attribute gc_objects_threshold.
5 6 7 |
# File 'lib/revelio/config.rb', line 5 def gc_objects_threshold @gc_objects_threshold end |
#inject_overlay ⇒ Object
Returns the value of attribute inject_overlay.
5 6 7 |
# File 'lib/revelio/config.rb', line 5 def end |
#project_root ⇒ Object
Returns the value of attribute project_root.
5 6 7 |
# File 'lib/revelio/config.rb', line 5 def project_root @project_root end |
#queries_threshold ⇒ Object
Returns the value of attribute queries_threshold.
5 6 7 |
# File 'lib/revelio/config.rb', line 5 def queries_threshold @queries_threshold end |
Instance Method Details
#thresholds ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/revelio/config.rb', line 17 def thresholds { duration: @duration_threshold, queries: @queries_threshold, gc_objects: @gc_objects_threshold } end |