Class: FeedUtils::Item
- Inherits:
-
Object
- Object
- FeedUtils::Item
- Defined in:
- lib/feedutils/item.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#content_type ⇒ Object
optional for now (text|html|html-escaped|binary-base64) - not yet set.
-
#guid ⇒ Object
todo: rename to id (use alias) ??.
-
#published ⇒ Object
Returns the value of attribute published.
-
#summary ⇒ Object
Returns the value of attribute summary.
-
#summary_type ⇒ Object
optional for now (text|html|html-escaped) - not yet set.
-
#title ⇒ Object
attr_accessor :object # not used for now – orginal object (e.g RSS item or ATOM entry etc.).
-
#title_type ⇒ Object
optional for now (text|html|html-escaped) - not yet set.
-
#updated ⇒ Object
Returns the value of attribute updated.
-
#url ⇒ Object
todo: rename to link (use alias) ??.
Instance Method Summary collapse
- #content? ⇒ Boolean
-
#published? ⇒ Boolean
todo: add summary (alias description) ??? todo: add author/authors todo: add category/categories.
- #summary? ⇒ Boolean
- #updated? ⇒ Boolean
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
12 13 14 |
# File 'lib/feedutils/item.rb', line 12 def content @content end |
#content_type ⇒ Object
optional for now (text|html|html-escaped|binary-base64) - not yet set
13 14 15 |
# File 'lib/feedutils/item.rb', line 13 def content_type @content_type end |
#guid ⇒ Object
todo: rename to id (use alias) ??
29 30 31 |
# File 'lib/feedutils/item.rb', line 29 def guid @guid end |
#published ⇒ Object
Returns the value of attribute published.
24 25 26 |
# File 'lib/feedutils/item.rb', line 24 def published @published end |
#summary ⇒ Object
Returns the value of attribute summary.
16 17 18 |
# File 'lib/feedutils/item.rb', line 16 def summary @summary end |
#summary_type ⇒ Object
optional for now (text|html|html-escaped) - not yet set
17 18 19 |
# File 'lib/feedutils/item.rb', line 17 def summary_type @summary_type end |
#title ⇒ Object
attr_accessor :object # not used for now – orginal object (e.g RSS item or ATOM entry etc.)
6 7 8 |
# File 'lib/feedutils/item.rb', line 6 def title @title end |
#title_type ⇒ Object
optional for now (text|html|html-escaped) - not yet set
7 8 9 |
# File 'lib/feedutils/item.rb', line 7 def title_type @title_type end |
#updated ⇒ Object
Returns the value of attribute updated.
27 28 29 |
# File 'lib/feedutils/item.rb', line 27 def updated @updated end |
#url ⇒ Object
todo: rename to link (use alias) ??
8 9 10 |
# File 'lib/feedutils/item.rb', line 8 def url @url end |
Instance Method Details
#content? ⇒ Boolean
11 |
# File 'lib/feedutils/item.rb', line 11 def content?() @content.nil? == false; end |
#published? ⇒ Boolean
todo: add summary (alias description) ??? todo: add author/authors todo: add category/categories
23 |
# File 'lib/feedutils/item.rb', line 23 def published?() @published.nil? == false; end |
#summary? ⇒ Boolean
15 |
# File 'lib/feedutils/item.rb', line 15 def summary?() @summary.nil? == false; end |
#updated? ⇒ Boolean
26 |
# File 'lib/feedutils/item.rb', line 26 def updated?() @updated.nil? == false; end |