Class: WhyQuery::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/why_query/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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_onlyObject

Returns the value of attribute app_only.



5
6
7
# File 'lib/why_query/config.rb', line 5

def app_only
  @app_only
end

#enabledObject

Returns the value of attribute enabled.



5
6
7
# File 'lib/why_query/config.rb', line 5

def enabled
  @enabled
end

#loggerObject

Returns the value of attribute logger.



5
6
7
# File 'lib/why_query/config.rb', line 5

def logger
  @logger
end