Class: CompanionApi::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#debugObject

Returns the value of attribute debug.



9
10
11
# File 'lib/companion_api/configuration.rb', line 9

def debug
  @debug
end

#directoryObject

Returns the value of attribute directory.



5
6
7
# File 'lib/companion_api/configuration.rb', line 5

def directory
  @directory
end

#loggerObject

Returns the value of attribute logger.



7
8
9
# File 'lib/companion_api/configuration.rb', line 7

def logger
  @logger
end

#profile_directoryObject

Returns the value of attribute profile_directory.



3
4
5
# File 'lib/companion_api/configuration.rb', line 3

def profile_directory
  @profile_directory
end