Class: Derrick::CLI::Context
- Inherits:
-
Object
- Object
- Derrick::CLI::Context
- Defined in:
- lib/derrick/cli.rb
Instance Attribute Summary collapse
-
#batch_size ⇒ Object
Returns the value of attribute batch_size.
-
#concurrency ⇒ Object
Returns the value of attribute concurrency.
-
#max_patterns ⇒ Object
Returns the value of attribute max_patterns.
Instance Method Summary collapse
-
#initialize ⇒ Context
constructor
A new instance of Context.
Constructor Details
#initialize ⇒ Context
Returns a new instance of Context.
46 47 48 49 50 |
# File 'lib/derrick/cli.rb', line 46 def initialize @concurrency = 2 @batch_size = 10_000 @max_patterns = 1_000 end |
Instance Attribute Details
#batch_size ⇒ Object
Returns the value of attribute batch_size.
44 45 46 |
# File 'lib/derrick/cli.rb', line 44 def batch_size @batch_size end |
#concurrency ⇒ Object
Returns the value of attribute concurrency.
44 45 46 |
# File 'lib/derrick/cli.rb', line 44 def concurrency @concurrency end |
#max_patterns ⇒ Object
Returns the value of attribute max_patterns.
44 45 46 |
# File 'lib/derrick/cli.rb', line 44 def max_patterns @max_patterns end |