Class: NameChecker::Configuration
- Inherits:
-
Object
- Object
- NameChecker::Configuration
- Defined in:
- lib/name_checker/configuration.rb
Constant Summary collapse
- DEFAULT_LOG_LEVEL =
'info'
- DEFAULT_ROBO_WHOIS_API_KEY =
nil
Instance Attribute Summary collapse
-
#log_level ⇒ Object
Returns the value of attribute log_level.
-
#robo_whois_api_key ⇒ Object
Returns the value of attribute robo_whois_api_key.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
17 18 19 20 |
# File 'lib/name_checker/configuration.rb', line 17 def initialize self.log_level = DEFAULT_LOG_LEVEL self.robo_whois_api_key = DEFAULT_ROBO_WHOIS_API_KEY end |
Instance Attribute Details
#log_level ⇒ Object
Returns the value of attribute log_level.
15 16 17 |
# File 'lib/name_checker/configuration.rb', line 15 def log_level @log_level end |
#robo_whois_api_key ⇒ Object
Returns the value of attribute robo_whois_api_key.
15 16 17 |
# File 'lib/name_checker/configuration.rb', line 15 def robo_whois_api_key @robo_whois_api_key end |