Class: RSSItem
- Inherits:
-
Object
- Object
- RSSItem
- Defined in:
- lib/zarchitect/rss.rb
Instance Attribute Summary collapse
-
#date ⇒ Object
readonly
Returns the value of attribute date.
-
#dates ⇒ Object
readonly
Returns the value of attribute dates.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#guid ⇒ Object
readonly
Returns the value of attribute guid.
-
#link ⇒ Object
readonly
Returns the value of attribute link.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(page) ⇒ RSSItem
constructor
A new instance of RSSItem.
Constructor Details
#initialize(page) ⇒ RSSItem
Returns a new instance of RSSItem.
52 53 54 55 56 57 58 59 |
# File 'lib/zarchitect/rss.rb', line 52 def initialize(page) @date = page.date @dates = page.date.strftime("%a, %d %b %Y %T %z") @title = page.name @description = page.description @link = page.url @guid = page.url end |
Instance Attribute Details
#date ⇒ Object (readonly)
Returns the value of attribute date.
49 50 51 |
# File 'lib/zarchitect/rss.rb', line 49 def date @date end |
#dates ⇒ Object (readonly)
Returns the value of attribute dates.
49 50 51 |
# File 'lib/zarchitect/rss.rb', line 49 def dates @dates end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
49 50 51 |
# File 'lib/zarchitect/rss.rb', line 49 def description @description end |
#guid ⇒ Object (readonly)
Returns the value of attribute guid.
49 50 51 |
# File 'lib/zarchitect/rss.rb', line 49 def guid @guid end |
#link ⇒ Object (readonly)
Returns the value of attribute link.
49 50 51 |
# File 'lib/zarchitect/rss.rb', line 49 def link @link end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
49 50 51 |
# File 'lib/zarchitect/rss.rb', line 49 def title @title end |