Class: CPEE::Notifications::DeleteSubscription
- Inherits:
-
Riddl::Implementation
- Object
- Riddl::Implementation
- CPEE::Notifications::DeleteSubscription
- Defined in:
- lib/cpee/implementation_notifications.rb
Overview
}}}
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.set(id, opts, key) ⇒ Object
{{{
175 176 177 |
# File 'lib/cpee/implementation_notifications.rb', line 175 def self::set(id,opts,key) CPEE::Persistence::set_handler(id,opts,key,"",[],true) end |
Instance Method Details
#response ⇒ Object
179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 |
# File 'lib/cpee/implementation_notifications.rb', line 179 def response id = @a[0] opts = @a[1] key = @r.last if opts[:statemachine].final? id @status = 410 else if CPEE::Persistence::exists_handler?(id,opts,key) DeleteSubscription::set(id,opts,key) else @status = 404 end end nil end |