Class: Brrr::Item::Enclosure

Inherits:
Feed::Element show all
Defined in:
lib/brrr/item/enclosure.rb

Instance Method Summary collapse

Methods inherited from Feed::Element

#initialize, #value

Constructor Details

This class inherits a constructor from Brrr::Feed::Element

Instance Method Details

#lengthObject



8
9
10
# File 'lib/brrr/item/enclosure.rb', line 8

def length
  Integer(node.attribute("length").value)
end

#typeObject



12
13
14
# File 'lib/brrr/item/enclosure.rb', line 12

def type
  node.attribute("type").value
end

#urlObject



4
5
6
# File 'lib/brrr/item/enclosure.rb', line 4

def url
  node.attribute("url").value
end