Class: Dev::BloomGrowth::Config
- Defined in:
- lib/firespring_dev_commands/bloom_growth.rb
Overview
Config object for setting top level bloom growth config options
Instance Attribute Summary collapse
-
#http_debug ⇒ Object
Returns the value of attribute http_debug.
-
#password ⇒ Object
Returns the value of attribute password.
-
#url ⇒ Object
Returns the value of attribute url.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
23 24 25 26 27 28 29 30 |
# File 'lib/firespring_dev_commands/bloom_growth.rb', line 23 def initialize Dotenv.load(CONFIG_FILE) if File.exist?(CONFIG_FILE) self.username = ENV.fetch(BLOOM_USERNAME, nil) self.password = ENV.fetch(BLOOM_PASSWORD, nil) self.url = ENV.fetch(BLOOM_URL, 'https://app.bloomgrowth.com') self.http_debug = false end |
Instance Attribute Details
#http_debug ⇒ Object
Returns the value of attribute http_debug
22 23 24 |
# File 'lib/firespring_dev_commands/bloom_growth.rb', line 22 def http_debug @http_debug end |
#password ⇒ Object
Returns the value of attribute password
22 23 24 |
# File 'lib/firespring_dev_commands/bloom_growth.rb', line 22 def password @password end |
#url ⇒ Object
Returns the value of attribute url
22 23 24 |
# File 'lib/firespring_dev_commands/bloom_growth.rb', line 22 def url @url end |
#username ⇒ Object
Returns the value of attribute username
22 23 24 |
# File 'lib/firespring_dev_commands/bloom_growth.rb', line 22 def username @username end |