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.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
- #cover! ⇒ Object
- #cover? ⇒ Boolean
-
#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 @id = SecureRandom.hex @cover = false 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 |
#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
#cover! ⇒ Object
18 19 20 |
# File 'lib/fitting/report/combination.rb', line 18 def cover! @cover = true end |
#cover? ⇒ Boolean
14 15 16 |
# File 'lib/fitting/report/combination.rb', line 14 def cover? @cover end |
#name ⇒ Object
22 23 24 |
# File 'lib/fitting/report/combination.rb', line 22 def name @combination end |