class Puree::XMLExtractor::ExternalOrganisation

External organisation XML extractor.

Public Class Methods

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

Public Instance Methods

name() click to toggle source

@return [String, nil]

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

Private Instance Methods

combine_metadata() click to toggle source
# File lib/puree/xml_extractor/external_organisation.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/external_organisation.rb, line 22
def xpath_root
  '/externalOrganisation'
end