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

{{{



258
259
260
261
262
263
264
265
266
# File 'lib/ruby/riddl/utils/notifications_producer.rb', line 258

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

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