Sha256: 221160a86a2f5b99feba0d3c4ed2d007529e08de7d559ca96f40a8e95f8f89b0
Contents?: true
Size: 505 Bytes
Versions: 3
Compression:
Stored size: 505 Bytes
Contents
module Puree module XMLExtractor # Event extractor mixin. # module EventMixin # @return [Puree::Model::EventHeader, nil] def event xpath_result = xpath_query '/event' if !xpath_result.empty? header = Puree::Model::EventHeader.new header.uuid = xpath_result.xpath('@uuid').text.strip header.title = xpath_result.xpath('name').text.strip return header if header.data? end nil end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
puree-2.7.0 | lib/puree/xml_extractor/mixins/event_mixin.rb |
puree-2.6.0 | lib/puree/xml_extractor/mixins/event_mixin.rb |
puree-2.5.1 | lib/puree/xml_extractor/mixins/event_mixin.rb |