Class: Sqeduler::Config

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

Overview

Simple config for Sqeduler::Service

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#loggerObject

Returns the value of attribute logger.



5
6
7
# File 'lib/sqeduler/config.rb', line 5

def logger
  @logger
end

#maintain_locksObject

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_startObject

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_startObject

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_hashObject

Returns the value of attribute redis_hash.



5
6
7
# File 'lib/sqeduler/config.rb', line 5

def redis_hash
  @redis_hash
end

#redis_poolObject

Returns the value of attribute redis_pool.



5
6
7
# File 'lib/sqeduler/config.rb', line 5

def redis_pool
  @redis_pool
end

#schedule_pathObject

Returns the value of attribute schedule_path.



5
6
7
# File 'lib/sqeduler/config.rb', line 5

def schedule_path
  @schedule_path
end