Class: SBOM::CycloneDX::Record::Attachment

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

Overview

Schema name: Attachment

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

Returns a new instance of Attachment.

Parameters:

  • content: (String)
  • content_type: (String)


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

def initialize: (content: String, ?content_type: String) -> void

Instance Method Details

#content ⇒ String

Returns:

  • (String)


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

def content: () -> String

#content= ⇒ String

Parameters:

  • (String)

Returns:

  • (String)


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

def content=: (String) -> String

#content? ⇒ Boolean

Returns:

  • (Boolean)


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

def content?: () -> bool

#content_type ⇒ String

Returns:

  • (String)


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

def content_type: () -> String

#content_type= ⇒ String

Parameters:

  • (String)

Returns:

  • (String)


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

def content_type=: (String) -> String

#content_type? ⇒ Boolean

Returns:

  • (Boolean)


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

def content_type?: () -> bool

#content_type_valid? ⇒ Boolean

Returns:

  • (Boolean)


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

def content_type_valid?: () -> bool

#content_valid? ⇒ Boolean

Returns:

  • (Boolean)


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

def content_valid?: () -> bool

#encoding ⇒ encodingConst

Returns:

  • (encodingConst)


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

def encoding: () -> encodingConst

#encoding? ⇒ true

Returns:

  • (true)


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

def encoding?: () -> true

#encoding_valid? ⇒ true

Returns:

  • (true)


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

def encoding_valid?: () -> true