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(params) ⇒ Handler

Returns a new instance of Handler.



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

def initialize(params)
  @name      = params[:name]
  @label     = params[:label]
  @context   = params[:context]
  @messenger = params[:messenger]
  @loop      = params[:loop]
end

Instance Attribute Details

#labelObject (readonly)

Returns the value of attribute label.



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

def label
  @label
end

#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



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

def handle(message)
end