Class: Rstatsd::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/rstatsd/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_dbObject

Returns the value of attribute redis_db.



11
12
13
# File 'lib/rstatsd/config.rb', line 11

def redis_db
  @redis_db
end

#redis_hostObject

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