Class: CompanionApi::Configuration
- Inherits:
-
Object
- Object
- CompanionApi::Configuration
- Defined in:
- lib/companion_api/configuration.rb
Instance Attribute Summary collapse
-
#debug ⇒ Object
Returns the value of attribute debug.
-
#directory ⇒ Object
Returns the value of attribute directory.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#profile_directory ⇒ Object
Returns the value of attribute profile_directory.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
11 12 13 14 15 |
# File 'lib/companion_api/configuration.rb', line 11 def initialize @directory = File.join(File.dirname(__FILE__), '..', '..', 'config') @debug = false @logger = Logger.new(STDOUT) end |
Instance Attribute Details
#debug ⇒ Object
Returns the value of attribute debug.
9 10 11 |
# File 'lib/companion_api/configuration.rb', line 9 def debug @debug end |
#directory ⇒ Object
Returns the value of attribute directory.
5 6 7 |
# File 'lib/companion_api/configuration.rb', line 5 def directory @directory end |
#logger ⇒ Object
Returns the value of attribute logger.
7 8 9 |
# File 'lib/companion_api/configuration.rb', line 7 def logger @logger end |
#profile_directory ⇒ Object
Returns the value of attribute profile_directory.
3 4 5 |
# File 'lib/companion_api/configuration.rb', line 3 def profile_directory @profile_directory end |