Class: SBOM::CycloneDX::Record::Patch

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

Overview

Schema name: Patch

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

Returns a new instance of Patch.

Parameters:

  • type: (String)
  • diff: (Diff, nil)
  • resolves: (Array[Issue], nil)


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

def initialize: (type: String, ?diff: Diff?, ?resolves: Array[Issue]?) -> void

Instance Method Details

#diff ⇒ Diff?

Returns:



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

def diff: () -> Diff?

#diff= ⇒ Diff?

Parameters:

Returns:



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

def diff=: (Diff?) -> Diff?

#diff? ⇒ Boolean

Returns:

  • (Boolean)


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

def diff?: () -> bool

#diff_valid? ⇒ Boolean

Returns:

  • (Boolean)


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

def diff_valid?: () -> bool

#resolves ⇒ Array[Issue]?

Returns:



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

def resolves: () -> Array[Issue]?

#resolves= ⇒ Array[Issue]?

Parameters:

Returns:



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

def resolves=: (Array[Issue]?) -> Array[Issue]?

#resolves? ⇒ Boolean

Returns:

  • (Boolean)


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

def resolves?: () -> bool

#resolves_valid? ⇒ Boolean

Returns:

  • (Boolean)


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

def resolves_valid?: () -> bool

#type ⇒ String

Returns:

  • (String)


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

def type: () -> String

#type= ⇒ String

Parameters:

  • (String)

Returns:

  • (String)


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

def type=: (String) -> String

#type? ⇒ Boolean

Returns:

  • (Boolean)


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

def type?: () -> bool

#type_valid? ⇒ Boolean

Returns:

  • (Boolean)


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

def type_valid?: () -> bool