Class: Droonga::Handler

Inherits:
Object
  • Object
show all
Extended by:
Pluggable
Defined in:
lib/droonga/handler.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Pluggable

find_sub_classes, options

Constructor Details

#initialize(name, context) ⇒ Handler

Returns a new instance of Handler.



34
35
36
37
# File 'lib/droonga/handler.rb', line 34

def initialize(name, context)
  @name = name
  @context = context
end

Class Method Details

.actionObject



29
30
31
# File 'lib/droonga/handler.rb', line 29

def action
  Plugin::Metadata::HandlerAction.new(self)
end

.messageObject



25
26
27
# File 'lib/droonga/handler.rb', line 25

def message
  Plugin::Metadata::InputMessage.new(self)
end

Instance Method Details

#handle(message, messenger) ⇒ Object



39
40
# File 'lib/droonga/handler.rb', line 39

def handle(message, messenger)
end