class Puree::XMLExtractor::Publisher

Publisher XML extractor.

Public Class Methods

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

Public Instance Methods

name() click to toggle source

@return [String, nil]

# File lib/puree/xml_extractor/publisher.rb, line 16
def name
  xpath_query_for_single_value '/name'
end

Private Instance Methods

combine_metadata() click to toggle source
# File lib/puree/xml_extractor/publisher.rb, line 26
def combine_metadata
  super
  @model.name = name
  @model.type = type
  @model
end
xpath_root() click to toggle source
# File lib/puree/xml_extractor/publisher.rb, line 22
def xpath_root
  '/publisher'
end