Class: Discobolo::Config

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

Class Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Class Attribute Details

.actor_concurrencyObject

Returns the value of attribute actor_concurrency.



7
8
9
# File 'lib/discobolo/config.rb', line 7

def actor_concurrency
  @actor_concurrency
end

.authObject

Returns the value of attribute auth.



7
8
9
# File 'lib/discobolo/config.rb', line 7

def auth
  @auth
end

.clientObject

Returns the value of attribute client.



7
8
9
# File 'lib/discobolo/config.rb', line 7

def client
  @client
end

.fetch_optionsObject

Returns the value of attribute fetch_options.



7
8
9
# File 'lib/discobolo/config.rb', line 7

def fetch_options
  @fetch_options
end

.queuesObject

Returns the value of attribute queues.



7
8
9
# File 'lib/discobolo/config.rb', line 7

def queues
  @queues
end

Class Method Details

.loggerObject



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

Yields:

  • (_self)

Yield Parameters:



10
11
12
# File 'lib/discobolo/config.rb', line 10

def self.setup
  yield self
end

Instance Method Details

#actor_concurrencyObject



28
29
30
# File 'lib/discobolo/config.rb', line 28

def actor_concurrency
  @actor_concurrency || 5
end

#fetch_optionsObject



32
33
34
# File 'lib/discobolo/config.rb', line 32

def fetch_options
  @fetch_options || {count: 10, timeout: 2000}
end