Class: Perilune::Configuration
- Inherits:
-
Object
- Object
- Perilune::Configuration
- Defined in:
- lib/perilune/configuration.rb
Instance Attribute Summary collapse
-
#queue_name ⇒ Object
Returns the value of attribute queue_name.
-
#stat_driver ⇒ Object
Returns the value of attribute stat_driver.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #stats_driver_config ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 |
# File 'lib/perilune/configuration.rb', line 7 def initialize @queue_name = :default @stat_driver = ::Trifle::Stats::Driver::Redis.new end |
Instance Attribute Details
#queue_name ⇒ Object
Returns the value of attribute queue_name.
5 6 7 |
# File 'lib/perilune/configuration.rb', line 5 def queue_name @queue_name end |
#stat_driver ⇒ Object
Returns the value of attribute stat_driver.
5 6 7 |
# File 'lib/perilune/configuration.rb', line 5 def stat_driver @stat_driver end |
Instance Method Details
#stats_driver_config ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/perilune/configuration.rb', line 12 def stats_driver_config config = ::Trifle::Stats::Configuration.new config.driver = @stat_driver config.time_zone = 'GMT' config.beginning_of_week = :monday config.track_ranges = i[hour day week month quarter year] config end |