Class: DoctorScrape::Scraper::Diva
- Defined in:
- lib/doctor_scrape/scraper/diva.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#doc, #errors?, #fetch, #initialize, #scrape, #url
Constructor Details
This class inherits a constructor from DoctorScrape::Scraper::Base
Instance Method Details
#parse ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/doctor_scrape/scraper/diva.rb', line 6 def parse @data.title = text "DC.Title" @data. = text "DC.Creator" @data.issued = text "DC.Date" @data.permalink = text "DC.Identifier.url" @data.pdf = text "citation_pdf_url" @data.abstract = text "DC.Description" end |