Class: Puree::Extractor::DoctoralThesis

Inherits:
Thesis show all
Defined in:
lib/puree/extractor/doctoral_thesis.rb

Overview

Doctoral thesis extractor.

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ DoctoralThesis

Returns a new instance of DoctoralThesis.

Parameters:

  • config (Hash)

    a customizable set of options

Options Hash (config):

  • :url (String)

    URL of the Pure host

  • :username (String)

    Username of the Pure host account

  • :password (String)

    Password of the Pure host account

  • :api_key (String)

    API key of the Pure host account



9
10
11
# File 'lib/puree/extractor/doctoral_thesis.rb', line 9

def initialize(config)
  super
end

Instance Method Details

#find(id) ⇒ Object

Parameters:

  • id (String)


14
15
16
17
18
# File 'lib/puree/extractor/doctoral_thesis.rb', line 14

def find(id)
  find_and_extract id: id,
                   api_resource_type: :research_output,
                   xml_extractor_resource_type: :doctoral_thesis
end