Class: Scraper::Microformats::HAtom

Inherits:
Base
  • Object
show all
Defined in:
lib/scraper/microformats.rb

Defined Under Namespace

Classes: Entry, Feed

Constant Summary

Constants inherited from Base

Base::READER_OPTIONS

Instance Attribute Summary

Attributes inherited from Base

#extracted, #options, #page_info

Instance Method Summary collapse

Methods inherited from Base

array, #document, element, extractor, #initialize, #option, options, parser, parser_options, #prepare, process, process_first, #request, result, #result, root_element, rules, scrape, #scrape, selector, #skip, #stop, text

Constructor Details

This class inherits a constructor from Scraper::Base

Instance Method Details

#collectObject



76
77
78
79
80
81
82
83
84
# File 'lib/scraper/microformats.rb', line 76

def collect()
  @feeds ||= []
  @feeds << entries if entries
  for feed in feeds
    for entry in feed
      entry.author = hcard unless entry.author
    end 
  end
end