class Asynk::Config
Public Class Methods
new()
click to toggle source
# File lib/asynk/config.rb, line 4 def initialize @params = { mq_exchange: 'asynk_exchange_topic', sync_publish_wait_timeout: 10, default_consumer_concurrency: 1, default_sync: false, daemonize: false, logfile: 'log/asynk.log', pidifle: 'tmp/pids/asynk.pid', mq_host: 'localhost', mq_port: 5672, mq_vhost: '/', mq_username: 'guest', mq_password: 'guest', publisher_execution_time: true, respond_back_execution_time: true, ignored_consumers: [] } end
Public Instance Methods
[](key)
click to toggle source
# File lib/asynk/config.rb, line 24 def [](key) @params[key] end
[]=(key, value)
click to toggle source
# File lib/asynk/config.rb, line 28 def []=(key, value) @params[key] = value end