class
CycloneDX::AttachedText
- CycloneDX::AttachedText
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
cyclonedx/models.crConstructors
- .new(pull : JSON::PullParser)
- .new(content : String, content_type : String | Nil = nil, encoding : String | Nil = nil)
Instance Method Summary
- #content : String
- #content_type : String | Nil
- #encoding : String | Nil
-
#to_xml(xml : XML::Builder, element_name : String = "text")
element_namediffers 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).
Constructor Detail
Instance Method Detail
def 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).