Class: Brrr::Feed::Element
- Inherits:
-
Object
- Object
- Brrr::Feed::Element
- Defined in:
- lib/brrr/feed/element.rb
Direct Known Subclasses
Channel::Category, Channel::Cloud, Channel::Image, Channel::TextInput, Item::Enclosure, Item::Guid, Item::Source
Instance Attribute Summary collapse
-
#node ⇒ Object
writeonly
Sets the attribute node.
Instance Method Summary collapse
-
#initialize(node) ⇒ Element
constructor
A new instance of Element.
- #value ⇒ Object
Constructor Details
#initialize(node) ⇒ Element
Returns a new instance of Element.
6 7 8 |
# File 'lib/brrr/feed/element.rb', line 6 def initialize(node) self.node = node end |
Instance Attribute Details
#node=(value) ⇒ Object
Sets the attribute node
4 5 6 |
# File 'lib/brrr/feed/element.rb', line 4 def node=(value) @node = value end |
Instance Method Details
#value ⇒ Object
10 11 12 |
# File 'lib/brrr/feed/element.rb', line 10 def value node.content unless node.content.empty? end |