class RSS::Enclosure

Overview

Describes a media object that is attached to an item.

Defined in:

cryss/enclosure.cr

Constructors

Instance Method Summary

Instance methods inherited from class RSS::Element

ns(name : String, &) ns, to_s(io : IO) to_s, to_xml(io : IO)
to_xml(xml : XML::Builder)
to_xml

Constructor Detail

def self.new(url : URI | String, length : Int32, type : String) #

[View source]

Instance Method Detail

def length : Int32 #

Size in bytes.


[View source]
def length=(length : Int32) #

[View source]
def to_xml(xml : XML::Builder) #
Description copied from class RSS::Element

Writes the generated XML to the provided xml builder.


[View source]
def type : String #

MIME type of the media.


[View source]
def type=(type : String) #

[View source]
def url : URI #

Where the enclosure is located.


[View source]
def url=(url : URI) #

[View source]