Class: FeedNormalizer::Entry

Inherits:
Object
  • Object
show all
Includes:
ElementCleaner, ElementEquality, Singular
Defined in:
lib/structures.rb

Overview

Represents a feed item entry.

Constant Summary collapse

HTML_ELEMENTS =
[:content, :description, :title]
SIMPLE_ELEMENTS =
[:date_published, :urls, :id, :authors, :copyright]
BLENDED_ELEMENTS =
[]
ELEMENTS =
HTML_ELEMENTS + SIMPLE_ELEMENTS + BLENDED_ELEMENTS

Instance Method Summary collapse

Methods included from Singular

#method_missing, #respond_to?

Methods included from ElementEquality

#==, #diff, #eql?

Methods included from ElementCleaner

#clean!

Constructor Details

#initializeEntry

Returns a new instance of Entry.



131
132
133
134
# File 'lib/structures.rb', line 131

def initialize
  @urls = []
  @authors = []
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class FeedNormalizer::Singular