Module: Rubyhorn::RestClient::Workflow

Included in:
MatterhornClient
Defined in:
lib/rubyhorn/rest_client/workflow.rb

Instance Method Summary collapse

Instance Method Details

#handlersObject


3
4
5
# File 'lib/rubyhorn/rest_client/workflow.rb', line 3

def handlers
  return JSON.parse(get("workflow/handlers.json"))
end

#instance_json(id) ⇒ Object


12
13
14
# File 'lib/rubyhorn/rest_client/workflow.rb', line 12

def instance_json id
  return JSON.parse(get("workflow/instance/#{id}.json"))
end

#instance_xml(id) ⇒ Object


15
16
17
# File 'lib/rubyhorn/rest_client/workflow.rb', line 15

def instance_xml id
  return Rubyhorn::Workflow.from_xml(get("workflow/instance/#{id}.xml"))
end

#statistics_jsonObject


6
7
8
# File 'lib/rubyhorn/rest_client/workflow.rb', line 6

def statistics_json
  return JSON.parse(get("workflow/statistics.json"))
end

#statistics_xmlObject


9
10
11
# File 'lib/rubyhorn/rest_client/workflow.rb', line 9

def statistics_xml
  #TODO write me and parse into OM document or just use Nokogiri?
end