class Matterhorn::WorkflowInstance
Matterhorn::WorkflowInstance
===¶ ↑
Constants
- XML_NS_WORKFLOW
———————————————————————— const definitions —
Public Class Methods
new(xml)
click to toggle source
————————————————————————— initialization —
# File lib/matterhorn/workflow_instance.rb, line 21 def initialize(xml) @document = Nokogiri::XML(xml) end
Public Instance Methods
id()
click to toggle source
——————————————————————————— methodes —
# File lib/matterhorn/workflow_instance.rb, line 28 def id @document.xpath('/nsw:workflow/@id', {"nsw" => XML_NS_WORKFLOW}).first.value end
state()
click to toggle source
# File lib/matterhorn/workflow_instance.rb, line 33 def state @document.xpath('/nsw:workflow/@state', {"nsw" => XML_NS_WORKFLOW}).first.value end
template()
click to toggle source
# File lib/matterhorn/workflow_instance.rb, line 38 def template @document.xpath('/nsw:workflow/nsw:template', {"nsw" => XML_NS_WORKFLOW}).first.content end
to_xml()
click to toggle source
# File lib/matterhorn/workflow_instance.rb, line 43 def to_xml @document.to_xml end