Class: SBOM::CycloneDX::Record::EnergyConsumption
- Inherits:
-
Base
- Object
- Base
- SBOM::CycloneDX::Record::EnergyConsumption
show all
- Defined in:
- lib/sbom/cyclone_dx/record/energy_consumption.rb,
sig/sbom/cyclone_dx/record/energy_consumption.rbs
Overview
Schema name: EnergyConsumption
Constant Summary
Constants inherited
from Base
Base::Record
Instance Attribute Summary
Attributes inherited from Base
#errors
Instance Method Summary
collapse
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
Returns a new instance of EnergyConsumption.
5
|
# File 'sig/sbom/cyclone_dx/record/energy_consumption.rbs', line 5
def initialize: (activity: String, energy_providers: Array[EnergyProvider], activity_energy_cost: EnergyMeasure, ?co2_cost_equivalent: CO2Measure?, ?co2_cost_offset: CO2Measure?, ?properties: Array[Property]?) -> void
|
Instance Method Details
#activity ⇒ String
7
|
# File 'sig/sbom/cyclone_dx/record/energy_consumption.rbs', line 7
def activity: () -> String
|
#activity= ⇒ String
8
|
# File 'sig/sbom/cyclone_dx/record/energy_consumption.rbs', line 8
def activity=: (String) -> String
|
#activity? ⇒ Boolean
9
|
# File 'sig/sbom/cyclone_dx/record/energy_consumption.rbs', line 9
def activity?: () -> bool
|
17
|
# File 'sig/sbom/cyclone_dx/record/energy_consumption.rbs', line 17
def activity_energy_cost: () -> EnergyMeasure
|
18
|
# File 'sig/sbom/cyclone_dx/record/energy_consumption.rbs', line 18
def activity_energy_cost=: (EnergyMeasure) -> EnergyMeasure
|
#activity_energy_cost? ⇒ Boolean
19
|
# File 'sig/sbom/cyclone_dx/record/energy_consumption.rbs', line 19
def activity_energy_cost?: () -> bool
|
#activity_energy_cost_valid? ⇒ Boolean
20
|
# File 'sig/sbom/cyclone_dx/record/energy_consumption.rbs', line 20
def activity_energy_cost_valid?: () -> bool
|
#activity_valid? ⇒ Boolean
10
|
# File 'sig/sbom/cyclone_dx/record/energy_consumption.rbs', line 10
def activity_valid?: () -> bool
|
#co2_cost_equivalent ⇒ CO2Measure?
22
|
# File 'sig/sbom/cyclone_dx/record/energy_consumption.rbs', line 22
def co2_cost_equivalent: () -> CO2Measure?
|
#co2_cost_equivalent= ⇒ CO2Measure?
23
|
# File 'sig/sbom/cyclone_dx/record/energy_consumption.rbs', line 23
def co2_cost_equivalent=: (CO2Measure?) -> CO2Measure?
|
#co2_cost_equivalent? ⇒ Boolean
24
|
# File 'sig/sbom/cyclone_dx/record/energy_consumption.rbs', line 24
def co2_cost_equivalent?: () -> bool
|
#co2_cost_equivalent_valid? ⇒ Boolean
25
|
# File 'sig/sbom/cyclone_dx/record/energy_consumption.rbs', line 25
def co2_cost_equivalent_valid?: () -> bool
|
27
|
# File 'sig/sbom/cyclone_dx/record/energy_consumption.rbs', line 27
def co2_cost_offset: () -> CO2Measure?
|
#co2_cost_offset= ⇒ CO2Measure?
28
|
# File 'sig/sbom/cyclone_dx/record/energy_consumption.rbs', line 28
def co2_cost_offset=: (CO2Measure?) -> CO2Measure?
|
#co2_cost_offset? ⇒ Boolean
29
|
# File 'sig/sbom/cyclone_dx/record/energy_consumption.rbs', line 29
def co2_cost_offset?: () -> bool
|
#co2_cost_offset_valid? ⇒ Boolean
30
|
# File 'sig/sbom/cyclone_dx/record/energy_consumption.rbs', line 30
def co2_cost_offset_valid?: () -> bool
|
12
|
# File 'sig/sbom/cyclone_dx/record/energy_consumption.rbs', line 12
def energy_providers: () -> Array[EnergyProvider]
|
13
|
# File 'sig/sbom/cyclone_dx/record/energy_consumption.rbs', line 13
def energy_providers=: (Array[EnergyProvider]) -> Array[EnergyProvider]
|
#energy_providers? ⇒ Boolean
14
|
# File 'sig/sbom/cyclone_dx/record/energy_consumption.rbs', line 14
def energy_providers?: () -> bool
|
#energy_providers_valid? ⇒ Boolean
15
|
# File 'sig/sbom/cyclone_dx/record/energy_consumption.rbs', line 15
def energy_providers_valid?: () -> bool
|
#properties ⇒ Array[Property]?
32
|
# File 'sig/sbom/cyclone_dx/record/energy_consumption.rbs', line 32
def properties: () -> Array[Property]?
|
#properties= ⇒ Array[Property]?
33
|
# File 'sig/sbom/cyclone_dx/record/energy_consumption.rbs', line 33
def properties=: (Array[Property]?) -> Array[Property]?
|
#properties? ⇒ Boolean
34
|
# File 'sig/sbom/cyclone_dx/record/energy_consumption.rbs', line 34
def properties?: () -> bool
|
#properties_valid? ⇒ Boolean
35
|
# File 'sig/sbom/cyclone_dx/record/energy_consumption.rbs', line 35
def properties_valid?: () -> bool
|