Class: Simmer::Specification
- Inherits:
-
Object
- Object
- Simmer::Specification
- Defined in:
- lib/simmer/specification.rb,
lib/simmer/specification/act.rb,
lib/simmer/specification/stage.rb,
lib/simmer/specification/assert.rb,
lib/simmer/specification/act/params.rb,
lib/simmer/specification/stage/input_file.rb,
lib/simmer/specification/assert/assertions.rb,
lib/simmer/specification/assert/assertions/table.rb,
lib/simmer/specification/assert/assertions/output.rb,
lib/simmer/specification/assert/assertions/bad_table_assertion.rb,
lib/simmer/specification/assert/assertions/bad_output_assertion.rb
Overview
Describes a specification at the highest of levels.
Defined Under Namespace
Instance Attribute Summary collapse
-
#act ⇒ Object
readonly
Returns the value of attribute act.
-
#assert ⇒ Object
readonly
Returns the value of attribute assert.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#stage ⇒ Object
readonly
Returns the value of attribute stage.
Instance Method Summary collapse
-
#initialize(act: {}, assert: {}, name:, path:, stage: {}) ⇒ Specification
constructor
A new instance of Specification.
Constructor Details
#initialize(act: {}, assert: {}, name:, path:, stage: {}) ⇒ Specification
Returns a new instance of Specification.
21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/simmer/specification.rb', line 21 def initialize(act: {}, assert: {}, name:, path:, stage: {}) raise ArgumentError, 'name is required' if name.to_s.empty? raise ArgumentError, 'path is required' if path.to_s.empty? @act = Act.make(act) @assert = Assert.make(assert) @name = name.to_s @path = path.to_s @stage = Stage.make(stage) freeze end |
Instance Attribute Details
#act ⇒ Object (readonly)
Returns the value of attribute act.
19 20 21 |
# File 'lib/simmer/specification.rb', line 19 def act @act end |
#assert ⇒ Object (readonly)
Returns the value of attribute assert.
19 20 21 |
# File 'lib/simmer/specification.rb', line 19 def assert @assert end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
19 20 21 |
# File 'lib/simmer/specification.rb', line 19 def name @name end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
19 20 21 |
# File 'lib/simmer/specification.rb', line 19 def path @path end |
#stage ⇒ Object (readonly)
Returns the value of attribute stage.
19 20 21 |
# File 'lib/simmer/specification.rb', line 19 def stage @stage end |