Class: Fitting::Report::Combination
- Inherits:
-
Object
- Object
- Fitting::Report::Combination
- Defined in:
- lib/fitting/report/combination.rb
Instance Method Summary collapse
- #add_test(test) ⇒ Object
- #id ⇒ Object
-
#initialize(json_schema:, type:, combination:) ⇒ Combination
constructor
A new instance of Combination.
- #json_schema ⇒ Object
- #name ⇒ Object
- #tests ⇒ Object
- #type ⇒ 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 Method Details
#add_test(test) ⇒ Object
32 33 34 |
# File 'lib/fitting/report/combination.rb', line 32 def add_test(test) @tests.push(test) end |
#id ⇒ Object
16 17 18 |
# File 'lib/fitting/report/combination.rb', line 16 def id @id end |
#json_schema ⇒ Object
12 13 14 |
# File 'lib/fitting/report/combination.rb', line 12 def json_schema @json_schema end |
#name ⇒ Object
24 25 26 |
# File 'lib/fitting/report/combination.rb', line 24 def name @combination end |
#tests ⇒ Object
28 29 30 |
# File 'lib/fitting/report/combination.rb', line 28 def tests @tests end |
#type ⇒ Object
20 21 22 |
# File 'lib/fitting/report/combination.rb', line 20 def type @type end |