Class: SBOM::CycloneDX::Record::SWID

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

Overview

Schema name: SWID

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 ⇒ SWID

Returns a new instance of SWID.

Parameters:

  • tag_id: (String)
  • name: (String)
  • version: (String, nil)
  • tag_version: (Integer, nil)
  • patch: (Boolean, nil)
  • text: (Attachment, nil)
  • url: (uri, nil)


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

def initialize: (tag_id: String, name: String, ?version: String?, ?tag_version: Integer?, ?patch: bool?, ?text: Attachment?, ?url: uri?) -> void

Instance Method Details

#name ⇒ String

Returns:

  • (String)


12
# File 'sig/sbom/cyclone_dx/record/swid.rbs', line 12

def name: () -> String

#name= ⇒ String

Parameters:

  • (String)

Returns:

  • (String)


13
# File 'sig/sbom/cyclone_dx/record/swid.rbs', line 13

def name=: (String) -> String

#name? ⇒ Boolean

Returns:

  • (Boolean)


14
# File 'sig/sbom/cyclone_dx/record/swid.rbs', line 14

def name?: () -> bool

#name_valid? ⇒ Boolean

Returns:

  • (Boolean)


15
# File 'sig/sbom/cyclone_dx/record/swid.rbs', line 15

def name_valid?: () -> bool

#patch ⇒ Boolean?

Returns:

  • (Boolean, nil)


27
# File 'sig/sbom/cyclone_dx/record/swid.rbs', line 27

def patch: () -> bool?

#patch= ⇒ Boolean?

Parameters:

  • (Boolean, nil)

Returns:

  • (Boolean, nil)


28
# File 'sig/sbom/cyclone_dx/record/swid.rbs', line 28

def patch=: (bool?) -> bool?

#patch? ⇒ Boolean

Returns:

  • (Boolean)


29
# File 'sig/sbom/cyclone_dx/record/swid.rbs', line 29

def patch?: () -> bool

#patch_valid? ⇒ Boolean

Returns:

  • (Boolean)


30
# File 'sig/sbom/cyclone_dx/record/swid.rbs', line 30

def patch_valid?: () -> bool

#tag_id ⇒ String

Returns:

  • (String)


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

def tag_id: () -> String

#tag_id= ⇒ String

Parameters:

  • (String)

Returns:

  • (String)


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

def tag_id=: (String) -> String

#tag_id? ⇒ Boolean

Returns:

  • (Boolean)


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

def tag_id?: () -> bool

#tag_id_valid? ⇒ Boolean

Returns:

  • (Boolean)


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

def tag_id_valid?: () -> bool

#tag_version ⇒ Integer?

Returns:

  • (Integer, nil)


22
# File 'sig/sbom/cyclone_dx/record/swid.rbs', line 22

def tag_version: () -> Integer?

#tag_version= ⇒ Integer?

Parameters:

  • (Integer, nil)

Returns:

  • (Integer, nil)


23
# File 'sig/sbom/cyclone_dx/record/swid.rbs', line 23

def tag_version=: (Integer?) -> Integer?

#tag_version? ⇒ Boolean

Returns:

  • (Boolean)


24
# File 'sig/sbom/cyclone_dx/record/swid.rbs', line 24

def tag_version?: () -> bool

#tag_version_valid? ⇒ Boolean

Returns:

  • (Boolean)


25
# File 'sig/sbom/cyclone_dx/record/swid.rbs', line 25

def tag_version_valid?: () -> bool

#text ⇒ Attachment?

Returns:



32
# File 'sig/sbom/cyclone_dx/record/swid.rbs', line 32

def text: () -> Attachment?

#text= ⇒ Attachment?

Parameters:

Returns:



33
# File 'sig/sbom/cyclone_dx/record/swid.rbs', line 33

def text=: (Attachment?) -> Attachment?

#text? ⇒ Boolean

Returns:

  • (Boolean)


34
# File 'sig/sbom/cyclone_dx/record/swid.rbs', line 34

def text?: () -> bool

#text_valid? ⇒ Boolean

Returns:

  • (Boolean)


35
# File 'sig/sbom/cyclone_dx/record/swid.rbs', line 35

def text_valid?: () -> bool

#url ⇒ uri?

Returns:

  • (uri, nil)


37
# File 'sig/sbom/cyclone_dx/record/swid.rbs', line 37

def url: () -> uri?

#url= ⇒ uri?

Parameters:

  • (uri, nil)

Returns:

  • (uri, nil)


38
# File 'sig/sbom/cyclone_dx/record/swid.rbs', line 38

def url=: (uri?) -> uri?

#url? ⇒ Boolean

Returns:

  • (Boolean)


39
# File 'sig/sbom/cyclone_dx/record/swid.rbs', line 39

def url?: () -> bool

#url_valid? ⇒ Boolean

Returns:

  • (Boolean)


40
# File 'sig/sbom/cyclone_dx/record/swid.rbs', line 40

def url_valid?: () -> bool

#version ⇒ String?

Returns:

  • (String, nil)


17
# File 'sig/sbom/cyclone_dx/record/swid.rbs', line 17

def version: () -> String?

#version= ⇒ String?

Parameters:

  • (String, nil)

Returns:

  • (String, nil)


18
# File 'sig/sbom/cyclone_dx/record/swid.rbs', line 18

def version=: (String?) -> String?

#version? ⇒ Boolean

Returns:

  • (Boolean)


19
# File 'sig/sbom/cyclone_dx/record/swid.rbs', line 19

def version?: () -> bool

#version_valid? ⇒ Boolean

Returns:

  • (Boolean)


20
# File 'sig/sbom/cyclone_dx/record/swid.rbs', line 20

def version_valid?: () -> bool