Class: Puree::XMLExtractor::Publisher

Inherits:
Resource show all
Defined in:
lib/puree/xml_extractor/publisher.rb

Overview

Publisher XML extractor.

Instance Method Summary collapse

Methods inherited from Resource

#created, #get_data?, #locale, #modified, #uuid, #xpath_query

Methods inherited from Base

#xpath_query_for_multi_value, #xpath_query_for_single_value

Constructor Details

#initialize(xml:) ⇒ Publisher

Returns a new instance of Publisher.



9
10
11
12
# File 'lib/puree/xml_extractor/publisher.rb', line 9

def initialize(xml:)
  super
  @resource_type = :publisher
end

Instance Method Details

#nameString?

Returns:

  • (String, nil)


15
16
17
# File 'lib/puree/xml_extractor/publisher.rb', line 15

def name
  xpath_query_for_single_value '/name'
end