| 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
| 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. |
# 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