class Puree::XMLExtractor::Journal

Journal XML extractor.

Public Class Methods

new(xml) click to toggle source
Calls superclass method Puree::XMLExtractor::Resource::new
# File lib/puree/xml_extractor/journal.rb, line 10
def initialize(xml)
  super
  setup_model :journal
end

Public Instance Methods

issn() click to toggle source

@return [String, nil]

# File lib/puree/xml_extractor/journal.rb, line 16
def issn
  xpath_query_for_single_value '/issns/issn'
end
title() click to toggle source

@return [String, nil]

# File lib/puree/xml_extractor/journal.rb, line 21
def title
  xpath_query_for_single_value '/titles/title'
end

Private Instance Methods

combine_metadata() click to toggle source
# File lib/puree/xml_extractor/journal.rb, line 27
def combine_metadata
  super
  @model.issn = issn
  @model.publisher = publisher
  @model.title = title
  @model
end
xpath_root() click to toggle source
# File lib/puree/xml_extractor/journal.rb, line 35
def xpath_root
  '/journal'
end