Class: Scraper::Microformats::HCard
- 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
18 19 20 21 22 23 24 25 26 |
# File 'lib/scraper/microformats.rb', line 18 def collect() unless fn if self.fn = given_name self.given_name << " #{family_name}" if family_name else self.fn = family_name end end end |