Class: CPEE::Notifications::Subscriptions
- Inherits:
-
Riddl::Implementation
- Object
- Riddl::Implementation
- CPEE::Notifications::Subscriptions
- Defined in:
- lib/cpee/implementation_notifications.rb
Overview
}}}
Instance Method Summary collapse
-
#response ⇒ Object
{{{.
Instance Method Details
#response ⇒ Object
{{{
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/cpee/implementation_notifications.rb', line 53 def response id = @a[0] opts = @a[1] Riddl::Parameter::Complex.new("subscriptions","text/xml") do ret = XML::Smart::string <<-END <subscriptions xmlns='http://riddl.org/ns/common-patterns/notifications-producer/2.0'/> END CPEE::Persistence::extract_handlers(id,opts).each do |de| ret.root.add('subscription').tap do |n| n.attributes['id'] = de[0] n.attributes['url'] = de[1] if de[1] && !de[1].empty? end end ret.to_s end end |