Class: NameChecker::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/name_checker/configuration.rb

Constant Summary collapse

DEFAULT_LOG_LEVEL =
'info'
DEFAULT_ROBO_WHOIS_API_KEY =
nil

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_levelObject

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_keyObject

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