Class: CPEE::Logging::Subscription

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

Overview

}}}

Instance Method Summary collapse

Instance Method Details

#responseObject

{{{



170
171
172
173
174
175
176
# File 'lib/cpee-logging-xes-yaml/implementation.rb', line 170

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