Class: Fitting::Report::Combination

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

Instance Attribute Summary collapse

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 Attribute Details

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#json_schemaObject (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

#testsObject (readonly)

Returns the value of attribute tests.



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

def tests
  @tests
end

#typeObject (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

#nameObject



14
15
16
# File 'lib/fitting/report/combination.rb', line 14

def name
  @combination
end