Class: Puree::XMLExtractor::ExternalOrganisation
- Includes:
- TypeMixin
- Defined in:
- lib/puree/xml_extractor/external_organisation.rb
Overview
External organisation XML extractor.
Instance Method Summary collapse
-
#initialize(xml) ⇒ ExternalOrganisation
constructor
A new instance of ExternalOrganisation.
- #name ⇒ String?
Methods included from TypeMixin
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
#name ⇒ String?
16 17 18 |
# File 'lib/puree/xml_extractor/external_organisation.rb', line 16 def name xpath_query_for_single_value '/names/name' end |