Class: Similus::Config
- Inherits:
-
Object
- Object
- Similus::Config
- Defined in:
- lib/similus/config.rb
Instance Attribute Summary collapse
-
#backend ⇒ Object
Returns the value of attribute backend.
-
#logfile ⇒ Object
Returns the value of attribute logfile.
-
#redis_db ⇒ Object
Returns the value of attribute redis_db.
-
#redis_server ⇒ Object
Returns the value of attribute redis_server.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
:nodoc:.
- #logger ⇒ Object
Constructor Details
#initialize ⇒ Config
:nodoc:
13 14 15 16 17 18 |
# File 'lib/similus/config.rb', line 13 def initialize #:nodoc: self.backend = :redis self.redis_server = "localhost:6379" self.redis_db = 9 self.logfile = STDOUT end |
Instance Attribute Details
#backend ⇒ Object
Returns the value of attribute backend.
8 9 10 |
# File 'lib/similus/config.rb', line 8 def backend @backend end |
#logfile ⇒ Object
Returns the value of attribute logfile.
11 12 13 |
# File 'lib/similus/config.rb', line 11 def logfile @logfile end |
#redis_db ⇒ Object
Returns the value of attribute redis_db.
10 11 12 |
# File 'lib/similus/config.rb', line 10 def redis_db @redis_db end |
#redis_server ⇒ Object
Returns the value of attribute redis_server.
9 10 11 |
# File 'lib/similus/config.rb', line 9 def redis_server @redis_server end |
Instance Method Details
#logger ⇒ Object
20 21 22 |
# File 'lib/similus/config.rb', line 20 def logger @logger ||= Logger.new(logfile) end |