Class: Fitting::Report::Combination

Inherits:
Object
  • Object
show all
Defined in:
lib/fitting/report/combination.rb

Instance Method Summary collapse

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

#idObject



16
17
18
# File 'lib/fitting/report/combination.rb', line 16

def id
  @id
end

#json_schemaObject



12
13
14
# File 'lib/fitting/report/combination.rb', line 12

def json_schema
  @json_schema
end

#nameObject



24
25
26
# File 'lib/fitting/report/combination.rb', line 24

def name
  @combination
end

#testsObject



28
29
30
# File 'lib/fitting/report/combination.rb', line 28

def tests
  @tests
end

#typeObject



20
21
22
# File 'lib/fitting/report/combination.rb', line 20

def type
  @type
end