Each item of the RSS feed has a corresponding Feed object associated with it.
Methods
Constants
| ValueAccessors | = | [:name, :title, :label, :text] |
Public Class methods
Helper method to automagically fill in the item‘s attributes
[ show source ]
# File app/models/feed.rb, line 16
16: def self.extract_rss_value(record)
17: ValueAccessors.each do |accessor|
18: next unless record.respond_to? accessor
19: return record.send accessor
20: end
21: return nil
22: end
Public Instance methods
The description of the item
[ show source ]
# File app/models/feed.rb, line 11
11: def description
12: "#{self.value}"
13: end
This item‘s title
[ show source ]
# File app/models/feed.rb, line 6 6: def title 7: "#{self.resource.humanize} #{self.action}" 8: end