Class: CPEE::Callbacks::DelCallback
- Inherits:
-
Riddl::Implementation
- Object
- Riddl::Implementation
- CPEE::Callbacks::DelCallback
- Defined in:
- lib/cpee/implementation_callbacks.rb
Overview
}}}
Instance Method Summary collapse
-
#response ⇒ Object
{{{.
Instance Method Details
#response ⇒ Object
{{{
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
# File 'lib/cpee/implementation_callbacks.rb', line 50 def response id = @a[0] opts = @a[1] callback = @r[-1] if opts[:redis].get("instance:#{id}/callback/#{callback}/type") == 'callback' CPEE::Message::send( :'callback-end', callback, opts[:url], id, {}, {}, {}, opts[:redis] ) elsif opts[:redis].get("instance:#{id}/callback/#{callback}/type") == 'vote' CPEE::Message::send( :'vote-response', callback, opts[:url], id, {}, {}, 'true', opts[:redis] ) else @status = 503 end nil end |