Class: Octokiq::Server::Configuration
- Inherits:
-
Object
- Object
- Octokiq::Server::Configuration
- Defined in:
- lib/octokiq/server.rb
Instance Attribute Summary collapse
-
#concurrency ⇒ Object
Returns the value of attribute concurrency.
-
#queues ⇒ Object
Returns the value of attribute queues.
-
#thread_mode ⇒ Object
Returns the value of attribute thread_mode.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
12 13 14 15 16 |
# File 'lib/octokiq/server.rb', line 12 def initialize @concurrency = Etc.nprocessors @queues = [Consts::DEFAULT_QUEUE] @thread_mode = false end |
Instance Attribute Details
#concurrency ⇒ Object
Returns the value of attribute concurrency.
8 9 10 |
# File 'lib/octokiq/server.rb', line 8 def concurrency @concurrency end |
#queues ⇒ Object
Returns the value of attribute queues.
8 9 10 |
# File 'lib/octokiq/server.rb', line 8 def queues @queues end |
#thread_mode ⇒ Object
Returns the value of attribute thread_mode.
8 9 10 |
# File 'lib/octokiq/server.rb', line 8 def thread_mode @thread_mode end |