Class: Droonga::Handler
- Inherits:
-
Object
- Object
- Droonga::Handler
- Extended by:
- Pluggable
- Includes:
- ErrorMessages, Loggable
- Defined in:
- lib/droonga/handler.rb
Direct Known Subclasses
Plugins::AsyncCommand::Handler, Plugins::CRUD::Handler, Plugins::Catalog::FetchHandler, Plugins::Groonga::ColumnCreate::Handler, Plugins::Groonga::ColumnList::Handler, Plugins::Groonga::ColumnRemove::Handler, Plugins::Groonga::ColumnRename::Handler, Plugins::Groonga::Delete::Handler, Plugins::Groonga::TableCreate::Handler, Plugins::Groonga::TableList::Handler, Plugins::Groonga::TableRemove::Handler, Plugins::Search::Handler, Plugins::System::StatisticsObjectCountHandler, Plugins::System::StatusHandler, Plugins::Watch::FeedHandler, Plugins::Watch::SubscribeHandler, Plugins::Watch::SweepHandler, Plugins::Watch::UnsubscribeHandler
Instance Attribute Summary collapse
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#loop ⇒ Object
readonly
Returns the value of attribute loop.
-
#messenger ⇒ Object
readonly
Returns the value of attribute messenger.
Class Method Summary collapse
Instance Method Summary collapse
- #handle(message) ⇒ Object
-
#initialize(params) ⇒ Handler
constructor
A new instance of Handler.
Methods included from Pluggable
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
#label ⇒ Object (readonly)
Returns the value of attribute label.
38 39 40 |
# File 'lib/droonga/handler.rb', line 38 def label @label end |
#loop ⇒ Object (readonly)
Returns the value of attribute loop.
38 39 40 |
# File 'lib/droonga/handler.rb', line 38 def loop @loop end |
#messenger ⇒ Object (readonly)
Returns the value of attribute messenger.
38 39 40 |
# File 'lib/droonga/handler.rb', line 38 def messenger @messenger end |
Class Method Details
.action ⇒ Object
33 34 35 |
# File 'lib/droonga/handler.rb', line 33 def action Plugin::Metadata::HandlerAction.new(self) end |
.message ⇒ Object
29 30 31 |
# File 'lib/droonga/handler.rb', line 29 def Plugin::Metadata::InputMessage.new(self) end |
Instance Method Details
#handle(message) ⇒ Object
47 48 |
# File 'lib/droonga/handler.rb', line 47 def handle() end |