Class: NeverBounce::CLI::UserConfig
- Inherits:
-
Object
- Object
- NeverBounce::CLI::UserConfig
- Defined in:
- lib/never_bounce/cli/user_config.rb,
lib/never_bounce/cli/user_config/file_content.rb
Overview
User’s configuration values.
Defined Under Namespace
Classes: FileContent
Instance Attribute Summary collapse
-
#api_key ⇒ String
API key.
-
#api_url ⇒ String
API URL.
- #fc ⇒ FileContent
Instance Method Summary collapse
-
#touch ⇒ self
“Touch” all attributes by loading them.
Instance Attribute Details
#api_key ⇒ String
API key.
17 18 19 |
# File 'lib/never_bounce/cli/user_config.rb', line 17 def api_key @api_key ||= fc[:api_key] end |
#api_url ⇒ String
API URL.
23 24 25 |
# File 'lib/never_bounce/cli/user_config.rb', line 23 def api_url @api_url ||= fc[:api_url] end |
#fc ⇒ FileContent
31 32 33 |
# File 'lib/never_bounce/cli/user_config.rb', line 31 def fc _cache[:fc] ||= FileContent.new end |
Instance Method Details
#touch ⇒ self
“Touch” all attributes by loading them.
41 42 43 44 |
# File 'lib/never_bounce/cli/user_config.rb', line 41 def touch api_key; api_url self end |