Class: SBOM::CycloneDX::Record::CO2Measure
- Defined in:
- lib/sbom/cyclone_dx/record/co2_measure.rb,
sig/sbom/cyclone_dx/record/co2_measure.rbs
Overview
Schema name: CO2Measure
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize ⇒ CO2Measure
constructor
A new instance of CO2Measure.
- #value ⇒ Float
- #value= ⇒ Float
- #value? ⇒ Boolean
- #value_valid? ⇒ Boolean
Methods inherited from Base
#<=>, const, custom_validators, fields, #formatted_errors, json_create, json_name, prop, #valid!, #valid?, validate
Methods included from _Klass
#const, #const_names, #create, #create!, #custom_validators, #fields, #json_name, #prop, #prop_names, #validate
Methods included from _Instance
#as_json, #errors, #formatted_errors, #to_json, #valid?
Constructor Details
#initialize ⇒ CO2Measure
Returns a new instance of CO2Measure.
5 |
# File 'sig/sbom/cyclone_dx/record/co2_measure.rbs', line 5 def initialize: (value: Float) -> void |
Instance Method Details
#value ⇒ Float
7 |
# File 'sig/sbom/cyclone_dx/record/co2_measure.rbs', line 7 def value: () -> Float |
#value= ⇒ Float
8 |
# File 'sig/sbom/cyclone_dx/record/co2_measure.rbs', line 8 def value=: (Float) -> Float |
#value? ⇒ Boolean
9 |
# File 'sig/sbom/cyclone_dx/record/co2_measure.rbs', line 9 def value?: () -> bool |
#value_valid? ⇒ Boolean
10 |
# File 'sig/sbom/cyclone_dx/record/co2_measure.rbs', line 10 def value_valid?: () -> bool |