Class: Riddl::Utils::Notifications::Producer::DeleteSubscription

Inherits:
Implementation
  • Object
show all
Defined in:
lib/ruby/riddl/utils/notifications_producer.rb

Overview

}}}

Instance Method Summary collapse

Methods inherited from Implementation

#headers, #initialize, #status

Constructor Details

This class inherits a constructor from Riddl::Implementation

Instance Method Details

#responseObject

{{{



247
248
249
250
251
252
253
254
255
# File 'lib/ruby/riddl/utils/notifications_producer.rb', line 247

def response
  backend = @a[0]
  handler = @a[1]
  key     = @r.last

  backend.subscriptions[key].delete
  handler.key(key).delete unless handler.nil?
  return
end