Class: BirdFeed::Item
- Inherits:
-
Object
- Object
- BirdFeed::Item
- Defined in:
- lib/birdfeed/item.rb
Instance Attribute Summary collapse
-
#author ⇒ Object
Returns the value of attribute author.
-
#description ⇒ Object
Returns the value of attribute description.
-
#id ⇒ Object
Returns the value of attribute id.
-
#link ⇒ Object
Returns the value of attribute link.
-
#node ⇒ Object
Returns the value of attribute node.
-
#published_at ⇒ Object
Returns the value of attribute published_at.
-
#title ⇒ Object
Returns the value of attribute title.
-
#xml ⇒ Object
Returns the value of attribute xml.
Instance Method Summary collapse
-
#initialize {|_self| ... } ⇒ Item
constructor
A new instance of Item.
Constructor Details
#initialize {|_self| ... } ⇒ Item
Returns a new instance of Item.
5 6 7 |
# File 'lib/birdfeed/item.rb', line 5 def initialize(&block) yield self if block_given? end |
Instance Attribute Details
#author ⇒ Object
Returns the value of attribute author.
3 4 5 |
# File 'lib/birdfeed/item.rb', line 3 def @author end |
#description ⇒ Object
Returns the value of attribute description.
3 4 5 |
# File 'lib/birdfeed/item.rb', line 3 def description @description end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/birdfeed/item.rb', line 3 def id @id end |
#link ⇒ Object
Returns the value of attribute link.
3 4 5 |
# File 'lib/birdfeed/item.rb', line 3 def link @link end |
#node ⇒ Object
Returns the value of attribute node.
3 4 5 |
# File 'lib/birdfeed/item.rb', line 3 def node @node end |
#published_at ⇒ Object
Returns the value of attribute published_at.
3 4 5 |
# File 'lib/birdfeed/item.rb', line 3 def published_at @published_at end |
#title ⇒ Object
Returns the value of attribute title.
3 4 5 |
# File 'lib/birdfeed/item.rb', line 3 def title @title end |
#xml ⇒ Object
Returns the value of attribute xml.
3 4 5 |
# File 'lib/birdfeed/item.rb', line 3 def xml @xml end |