Class: WhyQuery::Config
- Inherits:
-
Object
- Object
- WhyQuery::Config
- Defined in:
- lib/why_query/config.rb
Instance Attribute Summary collapse
-
#app_only ⇒ Object
Returns the value of attribute app_only.
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#logger ⇒ Object
Returns the value of attribute logger.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
7 8 9 10 11 |
# File 'lib/why_query/config.rb', line 7 def initialize @enabled = true @app_only = true @logger = ->(msg) { puts msg } end |
Instance Attribute Details
#app_only ⇒ Object
Returns the value of attribute app_only.
5 6 7 |
# File 'lib/why_query/config.rb', line 5 def app_only @app_only end |
#enabled ⇒ Object
Returns the value of attribute enabled.
5 6 7 |
# File 'lib/why_query/config.rb', line 5 def enabled @enabled end |
#logger ⇒ Object
Returns the value of attribute logger.
5 6 7 |
# File 'lib/why_query/config.rb', line 5 def logger @logger end |