Class: DoctorScrape::Scraper::Diva

Inherits:
Meta
  • Object
show all
Defined in:
lib/doctor_scrape/scraper/diva.rb

Instance Attribute Summary

Attributes inherited from Base

#data, #errors

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

#parseObject



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.author    = 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