Class: Droonga::Plugins::Watch::UnsubscribeHandler
- Includes:
- MessageParsable, SchemaCreatable
- Defined in:
- lib/droonga/plugins/watch.rb
Instance Attribute Summary
Attributes inherited from Handler
Instance Method Summary collapse
- #handle(message) ⇒ Object
-
#initialize(*args) ⇒ UnsubscribeHandler
constructor
A new instance of UnsubscribeHandler.
Methods inherited from Handler
Methods included from Droonga::Pluggable
Constructor Details
#initialize(*args) ⇒ UnsubscribeHandler
Returns a new instance of UnsubscribeHandler.
98 99 100 101 |
# File 'lib/droonga/plugins/watch.rb', line 98 def initialize(*args) super ensure_schema_created # TODO: REMOVE ME end |
Instance Method Details
#handle(message) ⇒ Object
103 104 105 106 107 108 109 110 111 112 113 114 |
# File 'lib/droonga/plugins/watch.rb', line 103 def handle() subscriber, condition, query, route = () _ = route # suppress a warning normalized_request = { :subscriber => subscriber, :condition => condition, :query => query, } watcher = Watcher.new(@context) watcher.unsubscribe(normalized_request) true end |