class

CycloneDX::AttachedText

Inherits JSON::Serializable / Reference / Object

Constructors

new(content : String, content_type : String | Nil = nil, encoding : String | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

content
Source
content_type
Source
encoding
Source
to_xml(xml : XML::Builder, element_name : String = "text")

element_name differs by context: the value is a <text> element in most places, but an <attachment> element inside a vulnerability's proofOfConcept supportingMaterial (both share attachmentType's shape).

Source