Class: Puree::Extractor::Thesis

Inherits:
ResearchOutput show all
Defined in:
lib/puree/extractor/thesis.rb

Overview

Thesis extractor.

Direct Known Subclasses

DoctoralThesis, MastersThesis

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ Thesis

Returns a new instance of Thesis.

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/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/thesis.rb', line 14

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