class FeedNormalizer::Feed
Represents the root element of a feed. Available fields are:
* title * description * id * last_updated * copyright * authors / author * urls / url * image * generator * items / channel
Constants
- BLENDED_ELEMENTS
Elements that contain both HTML and escaped HTML.
- ELEMENTS
- HTML_ELEMENTS
Elements that can contain HTML fragments.
- SIMPLE_ELEMENTS
Elements that contain 'plain' Strings, with HTML escaped.
Attributes
parser[RW]
Public Class Methods
new(wrapper)
click to toggle source
# File lib/structures.rb, line 224 def initialize(wrapper) # set up associations (i.e. arrays where needed) @urls = [] @authors = [] @skip_hours = [] @skip_days = [] @items = [] @parser = wrapper.parser.to_s @last_updated = nil end
Public Instance Methods
channel()
click to toggle source
# File lib/structures.rb, line 240 def channel() self end
last_updated()
click to toggle source
# File lib/structures.rb, line 236 def last_updated @last_updated = reparse(@last_updated) end