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
  @id = SecureRandom.hex
  @cover = false
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

#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

#cover!Object



18
19
20
# File 'lib/fitting/report/combination.rb', line 18

def cover!
  @cover = true
end

#cover?Boolean

Returns:

  • (Boolean)


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

def cover?
  @cover
end

#nameObject



22
23
24
# File 'lib/fitting/report/combination.rb', line 22

def name
  @combination
end