class CycloneDX::AttachedText

Included Modules

Defined in:

cyclonedx/models.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(content : String, content_type : String | Nil = nil, encoding : String | Nil = nil) #

[View source]

Instance Method Detail

def content : String #

[View source]
def content_type : String | Nil #

[View source]
def encoding : String | Nil #

[View source]
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).


[View source]