Class: Scraper::Microformats::HAtom::Entry
- Defined in:
- lib/scraper/microformats.rb
Constant Summary
Constants inherited from Base
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
#collect ⇒ Object
46 47 48 49 |
# File 'lib/scraper/microformats.rb', line 46 def collect() self.published = Time.parse(published) self.updated = updated ? Time.parse(updated) : published end |