Class: Puree::XMLExtractor::Publisher

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

Overview

Publisher XML extractor.

Instance Method Summary collapse

Methods included from TypeMixin

#type

Methods inherited from Resource

#created_at, #created_by, #id, #model, #modified_at, #modified_by, #previous_uuids, #uuid

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.



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

def initialize(xml)
  super
  setup_model :publisher
end

Instance Method Details

#nameString?

Returns:

  • (String, nil)


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

def name
  xpath_query_for_single_value '/name'
end