Class: Pbt::Check::Configuration

Inherits:
Struct
  • Object
show all
Defined in:
lib/pbt/check/configuration.rb

Overview

Configuration for Pbt.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(verbose: false, worker: :none, num_runs: 100, seed: Random.new_seed, thread_report_on_exception: false) ⇒ Configuration



19
20
21
22
23
24
25
26
27
# File 'lib/pbt/check/configuration.rb', line 19

def initialize(
  verbose: false,
  worker: :none,
  num_runs: 100,
  seed: Random.new_seed,
  thread_report_on_exception: false
)
  super
end

Instance Attribute Details

#num_runsObject

Returns the value of attribute num_runs



6
7
8
# File 'lib/pbt/check/configuration.rb', line 6

def num_runs
  @num_runs
end

#seedObject

Returns the value of attribute seed



6
7
8
# File 'lib/pbt/check/configuration.rb', line 6

def seed
  @seed
end

#thread_report_on_exceptionObject

Returns the value of attribute thread_report_on_exception



6
7
8
# File 'lib/pbt/check/configuration.rb', line 6

def thread_report_on_exception
  @thread_report_on_exception
end

#verboseObject

Returns the value of attribute verbose



6
7
8
# File 'lib/pbt/check/configuration.rb', line 6

def verbose
  @verbose
end

#workerObject

Returns the value of attribute worker



6
7
8
# File 'lib/pbt/check/configuration.rb', line 6

def worker
  @worker
end