Class: SBOM::CycloneDX::Record::EnergyMeasure

Inherits:
Base
  • Object
show all
Defined in:
lib/sbom/cyclone_dx/record/energy_measure.rb,
sig/sbom/cyclone_dx/record/energy_measure.rbs

Overview

Schema name: EnergyMeasure

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

#initialize ⇒ EnergyMeasure

Returns a new instance of EnergyMeasure.

Parameters:

  • value: (Float)


5
# File 'sig/sbom/cyclone_dx/record/energy_measure.rbs', line 5

def initialize: (value: Float) -> void

Instance Method Details

#value ⇒ Float

Returns:

  • (Float)


7
# File 'sig/sbom/cyclone_dx/record/energy_measure.rbs', line 7

def value: () -> Float

#value= ⇒ Float

Parameters:

  • (Float)

Returns:

  • (Float)


8
# File 'sig/sbom/cyclone_dx/record/energy_measure.rbs', line 8

def value=: (Float) -> Float

#value? ⇒ Boolean

Returns:

  • (Boolean)


9
# File 'sig/sbom/cyclone_dx/record/energy_measure.rbs', line 9

def value?: () -> bool

#value_valid? ⇒ Boolean

Returns:

  • (Boolean)


10
# File 'sig/sbom/cyclone_dx/record/energy_measure.rbs', line 10

def value_valid?: () -> bool