Class: VlcProxy::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



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

def initialize
  @logger = Logger.new(STDOUT)
  @verbose = false
end

Instance Attribute Details

#loggerObject



12
13
14
15
16
# File 'lib/vlc_proxy/configuration.rb', line 12

def logger
  @logger.level = verbose? ? Logger::DEBUG : Logger::INFO

  @logger
end

#verbose=(value) ⇒ Object (writeonly)

Sets the attribute verbose

Parameters:

  • value

    the value to set the attribute verbose to.



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

def verbose=(value)
  @verbose = value
end

Instance Method Details

#verbose?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/vlc_proxy/configuration.rb', line 18

def verbose?
  @verbose
end