Class: Viiite::Benchmark
- Inherits:
-
Object
- Object
- Viiite::Benchmark
- Includes:
- DSL, Unit
- Defined in:
- lib/viiite/benchmark.rb,
lib/viiite/benchmark/dsl.rb
Defined Under Namespace
Modules: DSL
Instance Attribute Summary (collapse)
-
- (Object) config
readonly
Returns the value of attribute config.
-
- (Object) definition
readonly
Returns the value of attribute definition.
-
- (Object) path
readonly
Returns the value of attribute path.
Attributes included from DSL
Instance Method Summary (collapse)
-
- (Benchmark) initialize(config, path, definition)
constructor
A new instance of Benchmark.
Methods included from DSL
#dsl_run, #range_over, #report, #variation_point, #with
Methods included from Unit
Constructor Details
- (Benchmark) initialize(config, path, definition)
A new instance of Benchmark
11 12 13 14 15 16 17 18 |
# File 'lib/viiite/benchmark.rb', line 11 def initialize(config, path, definition) unless definition raise ArgumentError, "Benchmark definition is mandatory", caller end @config = config @path = path @definition = definition end |
Instance Attribute Details
- (Object) config (readonly)
Returns the value of attribute config
7 8 9 |
# File 'lib/viiite/benchmark.rb', line 7 def config @config end |
- (Object) definition (readonly)
Returns the value of attribute definition
9 10 11 |
# File 'lib/viiite/benchmark.rb', line 9 def definition @definition end |
- (Object) path (readonly)
Returns the value of attribute path
8 9 10 |
# File 'lib/viiite/benchmark.rb', line 8 def path @path end |