Sha256: de59ab3b3a4ba93bd4a8befaa4cb69d4024fe823631e4162aabac9f0f81595bb
Contents?: true
Size: 526 Bytes
Versions: 50
Compression:
Stored size: 526 Bytes
Contents
module Slaw # An event in the lifecycle of an act class LifecycleEvent include Slaw::Namespace # Date of the event attr_accessor :date # type of the event attr_accessor :type # the source of the event, an XML reference element attr_accessor :source def initialize(element) @date = element['date'] @type = element['type'] source_id = element['source'][1..-1] @source = element.document.at_xpath("//a:references/*[@id=\"#{source_id}\"]", a: NS) end end end
Version data entries
50 entries across 50 versions & 1 rubygems