Class: Puree::XMLExtractor::ExternalOrganisation

Inherits:
Resource
  • Object
show all
Includes:
TypeMixin
Defined in:
lib/puree/xml_extractor/external_organisation.rb

Overview

External organisation 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) ⇒ ExternalOrganisation

Returns a new instance of ExternalOrganisation.



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

def initialize(xml)
  super
  setup_model :external_organisation
end

Instance Method Details

#nameString?

Returns:

  • (String, nil)


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

def name
  xpath_query_for_single_value '/names/name'
end