Class: Takwimu::Configuration
- Inherits:
-
Object
- Object
- Takwimu::Configuration
- Defined in:
- lib/takwimu/configuration.rb
Instance Attribute Summary collapse
-
#aggregation_period ⇒ Object
Returns the value of attribute aggregation_period.
-
#hostname ⇒ Object
Returns the value of attribute hostname.
-
#interval ⇒ Object
Returns the value of attribute interval.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#panels ⇒ Object
Returns the value of attribute panels.
-
#statsd ⇒ Object
Returns the value of attribute statsd.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
9 10 11 12 13 14 15 16 |
# File 'lib/takwimu/configuration.rb', line 9 def initialize @interval = 10 @aggregation_period = 60 @statsd = :default @hostname = "#{Socket.gethostname}" @logger = nil @panels = [] end |
Instance Attribute Details
#aggregation_period ⇒ Object
Returns the value of attribute aggregation_period.
6 7 8 |
# File 'lib/takwimu/configuration.rb', line 6 def aggregation_period @aggregation_period end |
#hostname ⇒ Object
Returns the value of attribute hostname.
6 7 8 |
# File 'lib/takwimu/configuration.rb', line 6 def hostname @hostname end |
#interval ⇒ Object
Returns the value of attribute interval.
6 7 8 |
# File 'lib/takwimu/configuration.rb', line 6 def interval @interval end |
#logger ⇒ Object
Returns the value of attribute logger.
6 7 8 |
# File 'lib/takwimu/configuration.rb', line 6 def logger @logger end |
#panels ⇒ Object
Returns the value of attribute panels.
6 7 8 |
# File 'lib/takwimu/configuration.rb', line 6 def panels @panels end |
#statsd ⇒ Object
Returns the value of attribute statsd.
6 7 8 |
# File 'lib/takwimu/configuration.rb', line 6 def statsd @statsd end |