Class: Discobolo::Config
- Inherits:
-
Object
- Object
- Discobolo::Config
- Defined in:
- lib/discobolo/config.rb
Class Attribute Summary collapse
-
.actor_concurrency ⇒ Object
Returns the value of attribute actor_concurrency.
-
.auth ⇒ Object
Returns the value of attribute auth.
-
.client ⇒ Object
Returns the value of attribute client.
-
.fetch_options ⇒ Object
Returns the value of attribute fetch_options.
-
.queues ⇒ Object
Returns the value of attribute queues.
Class Method Summary collapse
Instance Method Summary collapse
Class Attribute Details
.actor_concurrency ⇒ Object
Returns the value of attribute actor_concurrency.
7 8 9 |
# File 'lib/discobolo/config.rb', line 7 def actor_concurrency @actor_concurrency end |
.auth ⇒ Object
Returns the value of attribute auth.
7 8 9 |
# File 'lib/discobolo/config.rb', line 7 def auth @auth end |
.client ⇒ Object
Returns the value of attribute client.
7 8 9 |
# File 'lib/discobolo/config.rb', line 7 def client @client end |
.fetch_options ⇒ Object
Returns the value of attribute fetch_options.
7 8 9 |
# File 'lib/discobolo/config.rb', line 7 def @fetch_options end |
.queues ⇒ Object
Returns the value of attribute queues.
7 8 9 |
# File 'lib/discobolo/config.rb', line 7 def queues @queues end |
Class Method Details
.logger ⇒ Object
24 25 26 |
# File 'lib/discobolo/config.rb', line 24 def self.logger @logger || Discobolo::Logger.new($stdout) end |
.logger=(arg = nil) ⇒ Object
19 20 21 22 |
# File 'lib/discobolo/config.rb', line 19 def self.logger=(arg=nil) l = arg.nil? ? arg : $stdout @logger = Discobolo::Logger.new(l) end |
.setup {|_self| ... } ⇒ Object
10 11 12 |
# File 'lib/discobolo/config.rb', line 10 def self.setup yield self end |
Instance Method Details
#actor_concurrency ⇒ Object
28 29 30 |
# File 'lib/discobolo/config.rb', line 28 def actor_concurrency @actor_concurrency || 5 end |
#fetch_options ⇒ Object
32 33 34 |
# File 'lib/discobolo/config.rb', line 32 def @fetch_options || {count: 10, timeout: 2000} end |