Class: RSSItem

Inherits:
Object
  • Object
show all
Defined in:
lib/zarchitect/rss.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dateObject (readonly)

Returns the value of attribute date.



49
50
51
# File 'lib/zarchitect/rss.rb', line 49

def date
  @date
end

#datesObject (readonly)

Returns the value of attribute dates.



49
50
51
# File 'lib/zarchitect/rss.rb', line 49

def dates
  @dates
end

#descriptionObject (readonly)

Returns the value of attribute description.



49
50
51
# File 'lib/zarchitect/rss.rb', line 49

def description
  @description
end

#guidObject (readonly)

Returns the value of attribute guid.



49
50
51
# File 'lib/zarchitect/rss.rb', line 49

def guid
  @guid
end

Returns the value of attribute link.



49
50
51
# File 'lib/zarchitect/rss.rb', line 49

def link
  @link
end

#titleObject (readonly)

Returns the value of attribute title.



49
50
51
# File 'lib/zarchitect/rss.rb', line 49

def title
  @title
end