Class: Sqeduler::Config
- Inherits:
-
Object
- Object
- Sqeduler::Config
- Defined in:
- lib/sqeduler/config.rb
Overview
Simple config for Sqeduler::Service
Instance Attribute Summary collapse
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#maintain_locks ⇒ Object
Returns the value of attribute maintain_locks.
-
#on_client_start ⇒ Object
Returns the value of attribute on_client_start.
-
#on_server_start ⇒ Object
Returns the value of attribute on_server_start.
-
#redis_hash ⇒ Object
Returns the value of attribute redis_hash.
-
#redis_pool ⇒ Object
Returns the value of attribute redis_pool.
-
#schedule_path ⇒ Object
Returns the value of attribute schedule_path.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(opts = {}) ⇒ Config
Returns a new instance of Config.
8 9 10 11 12 13 14 15 16 |
# File 'lib/sqeduler/config.rb', line 8 def initialize(opts = {}) self.redis_hash = opts[:redis_hash] self.redis_pool = opts[:redis_pool] self.schedule_path = opts[:schedule_path] self.on_server_start = opts[:on_server_start] self.on_client_start = opts[:on_client_start] self.logger = opts[:logger] self.maintain_locks = opts[:maintain_locks] end |
Instance Attribute Details
#logger ⇒ Object
Returns the value of attribute logger.
5 6 7 |
# File 'lib/sqeduler/config.rb', line 5 def logger @logger end |
#maintain_locks ⇒ Object
Returns the value of attribute maintain_locks.
5 6 7 |
# File 'lib/sqeduler/config.rb', line 5 def maintain_locks @maintain_locks end |
#on_client_start ⇒ Object
Returns the value of attribute on_client_start.
5 6 7 |
# File 'lib/sqeduler/config.rb', line 5 def on_client_start @on_client_start end |
#on_server_start ⇒ Object
Returns the value of attribute on_server_start.
5 6 7 |
# File 'lib/sqeduler/config.rb', line 5 def on_server_start @on_server_start end |
#redis_hash ⇒ Object
Returns the value of attribute redis_hash.
5 6 7 |
# File 'lib/sqeduler/config.rb', line 5 def redis_hash @redis_hash end |
#redis_pool ⇒ Object
Returns the value of attribute redis_pool.
5 6 7 |
# File 'lib/sqeduler/config.rb', line 5 def redis_pool @redis_pool end |
#schedule_path ⇒ Object
Returns the value of attribute schedule_path.
5 6 7 |
# File 'lib/sqeduler/config.rb', line 5 def schedule_path @schedule_path end |