Class: VlcProxy::Configuration
- Inherits:
-
Object
- Object
- VlcProxy::Configuration
- Defined in:
- lib/vlc_proxy/configuration.rb
Instance Attribute Summary collapse
- #logger ⇒ Object
-
#verbose ⇒ Object
writeonly
Sets the attribute verbose.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #verbose? ⇒ Boolean
Constructor Details
#initialize ⇒ Configuration
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
#logger ⇒ Object
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
5 6 7 |
# File 'lib/vlc_proxy/configuration.rb', line 5 def verbose=(value) @verbose = value end |
Instance Method Details
#verbose? ⇒ Boolean
18 19 20 |
# File 'lib/vlc_proxy/configuration.rb', line 18 def verbose? @verbose end |