Class: Dev::BloomGrowth::Config

Inherits:
Struct
  • Object
show all
Defined in:
lib/firespring_dev_commands/bloom_growth.rb

Overview

Config object for setting top level bloom growth config options

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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_debugObject

Returns the value of attribute http_debug

Returns:

  • (Object)

    the current value of http_debug



22
23
24
# File 'lib/firespring_dev_commands/bloom_growth.rb', line 22

def http_debug
  @http_debug
end

#passwordObject

Returns the value of attribute password

Returns:

  • (Object)

    the current value of password



22
23
24
# File 'lib/firespring_dev_commands/bloom_growth.rb', line 22

def password
  @password
end

#urlObject

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



22
23
24
# File 'lib/firespring_dev_commands/bloom_growth.rb', line 22

def url
  @url
end

#usernameObject

Returns the value of attribute username

Returns:

  • (Object)

    the current value of username



22
23
24
# File 'lib/firespring_dev_commands/bloom_growth.rb', line 22

def username
  @username
end