Class: Droonga::Handler

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Pluggable

find_sub_classes, options

Constructor Details

#initialize(name, context, messenger, loop) ⇒ Handler

Returns a new instance of Handler.



39
40
41
42
43
44
# File 'lib/droonga/handler.rb', line 39

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

Instance Attribute Details

#loopObject (readonly)

Returns the value of attribute loop.



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

def loop
  @loop
end

#messengerObject (readonly)

Returns the value of attribute messenger.



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

def messenger
  @messenger
end

Class Method Details

.actionObject



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

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

.messageObject



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

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

Instance Method Details

#handle(message) ⇒ Object



46
47
# File 'lib/droonga/handler.rb', line 46

def handle(message)
end