Class: CPEE::Logging::Subscription

Inherits:
Riddl::Implementation
  • Object
show all
Defined in:
lib/cpee-logging-xes-yaml/logging.rb

Overview

}}}

Instance Method Summary collapse

Instance Method Details

#responseObject

{{{



91
92
93
94
95
96
97
# File 'lib/cpee-logging-xes-yaml/logging.rb', line 91

def response
  opts = @a[0]
  id = @r[-1]
  doc = XML::Smart::open_unprotected(File.join(opts[:notifications_dir],id,'subscription.xml'))
  doc.root.attributes['id'] = id
  Riddl::Parameter::Complex.new("subscriptions","text/xml",doc.to_s)
end