Class Syndication::RSS::Enclosure
In: lib/syndication/rss.rb
Parent: Syndication::Container

Represents a multimedia enclosure in an RSS item. Typically found as Syndication::Item#enclosure

Methods

length=   new  

Attributes

length  [R]  The length of the file, in bytes.
type  [RW]  The MIME type of the file.
url  [RW]  The URL to the multimedia file.

Public Class methods

[Source]

# File lib/syndication/rss.rb, line 257
    def initialize(parent, tag, attrs = nil)
      @tag = tag
      @parent = parent
      if attrs
        attrs.each_pair {|key, value|
          self.store(key, value)
        }
      end
    end

Public Instance methods

Set length in bytes.

[Source]

# File lib/syndication/rss.rb, line 253
    def length=(x)
      @length = x.to_i
    end

[Validate]