Class: Derrick::CLI::Context

Inherits:
Object
  • Object
show all
Defined in:
lib/derrick/cli.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeContext

Returns a new instance of Context.



44
45
46
47
48
# File 'lib/derrick/cli.rb', line 44

def initialize
  @concurrency = 2
  @batch_size = 10_000
  @max_patterns = 1_000
end

Instance Attribute Details

#batch_sizeObject

Returns the value of attribute batch_size.



42
43
44
# File 'lib/derrick/cli.rb', line 42

def batch_size
  @batch_size
end

#concurrencyObject

Returns the value of attribute concurrency.



42
43
44
# File 'lib/derrick/cli.rb', line 42

def concurrency
  @concurrency
end

#max_patternsObject

Returns the value of attribute max_patterns.



42
43
44
# File 'lib/derrick/cli.rb', line 42

def max_patterns
  @max_patterns
end