Class: Puree::XMLExtractor::Publisher
- Defined in:
- lib/puree/xml_extractor/publisher.rb
Overview
Publisher XML extractor.
Instance Method Summary collapse
-
#initialize(xml:) ⇒ Publisher
constructor
A new instance of Publisher.
- #name ⇒ String?
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
#name ⇒ String?
15 16 17 |
# File 'lib/puree/xml_extractor/publisher.rb', line 15 def name xpath_query_for_single_value '/name' end |