class

RSS::Enclosure

Inherits RSS::Element / Reference / Object

Describes a media object that is attached to an item.

Constructors

new(url : URI | String, length : Int32, type : String)
Source

Instance methods

length

Size in bytes.

Source
length=(length : Int32)
Source
to_xml(xml : XML::Builder)

Writes the generated XML to the provided xml builder.

Source
type

MIME type of the media.

Source
type=(type : String)
Source
url

Where the enclosure is located.

Source
url=(url : URI)
Source