Module | FeedNormalizer::ElementEquality |
In: |
lib/structures.rb
|
Returns the difference between two Feed instances as a hash. Any top-level differences in the Feed object as presented as:
{ :title => [content, other_content] }
For differences at the items level, an array of hashes shows the diffs on a per-entry basis. Only entries that differ will contain a hash:
{ :items => [ {:title => ["An article tile", "A new article title"]}, {:title => ["one title", "a different title"]} ]}
If the number of items in each feed are different, then the count of each is provided instead:
{ :items => [4,5] }
This method can also be useful for human-readable feed comparison if its output is dumped to YAML.