Sha256: dd7087389437774e33506624f916210a1f673f82b1a53cd21da942f257345c32
Contents?: true
Size: 615 Bytes
Versions: 2
Compression:
Stored size: 615 Bytes
Contents
module Puree module XMLExtractor # External organisation XML extractor. # class ExternalOrganisation < Puree::XMLExtractor::Resource include Puree::XMLExtractor::TypeMixin def initialize(xml) super setup_model :external_organisation end # @return [String, nil] def name xpath_query_for_single_value '/names/name' end private def xpath_root '/externalOrganisation' end def combine_metadata super @model.name = name @model.type = type @model end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
puree-2.8.1 | lib/puree/xml_extractor/external_organisation.rb |
puree-2.8.0 | lib/puree/xml_extractor/external_organisation.rb |