Class: Fitting::Report::Combination
- Inherits:
-
Object
- Object
- Fitting::Report::Combination
- Defined in:
- lib/fitting/report/combination.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#json_schema ⇒ Object
readonly
Returns the value of attribute json_schema.
-
#tests ⇒ Object
readonly
Returns the value of attribute tests.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
- #add_test(test) ⇒ Object
-
#initialize(json_schema:, type:, combination:) ⇒ Combination
constructor
A new instance of Combination.
- #name ⇒ Object
Constructor Details
#initialize(json_schema:, type:, combination:) ⇒ Combination
Returns a new instance of Combination.
4 5 6 7 8 9 10 |
# File 'lib/fitting/report/combination.rb', line 4 def initialize(json_schema:, type:, combination:) @json_schema = json_schema @type = type @combination = combination @tests = Fitting::Report::Tests.new([]) @id = SecureRandom.hex end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
12 13 14 |
# File 'lib/fitting/report/combination.rb', line 12 def id @id end |
#json_schema ⇒ Object (readonly)
Returns the value of attribute json_schema.
12 13 14 |
# File 'lib/fitting/report/combination.rb', line 12 def json_schema @json_schema end |
#tests ⇒ Object (readonly)
Returns the value of attribute tests.
12 13 14 |
# File 'lib/fitting/report/combination.rb', line 12 def tests @tests end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
12 13 14 |
# File 'lib/fitting/report/combination.rb', line 12 def type @type end |
Instance Method Details
#add_test(test) ⇒ Object
18 19 20 |
# File 'lib/fitting/report/combination.rb', line 18 def add_test(test) @tests.push(test) end |
#name ⇒ Object
14 15 16 |
# File 'lib/fitting/report/combination.rb', line 14 def name @combination end |