Class: Rstatsd::Configuration
- Inherits:
-
Object
- Object
- Rstatsd::Configuration
- Defined in:
- lib/rstatsd/config.rb
Instance Attribute Summary collapse
-
#redis_db ⇒ Object
Returns the value of attribute redis_db.
-
#redis_host ⇒ Object
Returns the value of attribute redis_host.
Instance Method Summary collapse
- #[](option) ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
13 14 15 16 |
# File 'lib/rstatsd/config.rb', line 13 def initialize @redis_db = 1 @redis_host = '127.0.0.1:6379' end |
Instance Attribute Details
#redis_db ⇒ Object
Returns the value of attribute redis_db.
11 12 13 |
# File 'lib/rstatsd/config.rb', line 11 def redis_db @redis_db end |
#redis_host ⇒ Object
Returns the value of attribute redis_host.
11 12 13 |
# File 'lib/rstatsd/config.rb', line 11 def redis_host @redis_host end |
Instance Method Details
#[](option) ⇒ Object
18 19 20 |
# File 'lib/rstatsd/config.rb', line 18 def [](option) send(option) end |