Module: Groonga::Client::Response
- Defined in:
- lib/groonga/client/response/base.rb,
lib/groonga/client/response/dump.rb,
lib/groonga/client/response/load.rb,
lib/groonga/client/response/quit.rb,
lib/groonga/client/response/check.rb,
lib/groonga/client/response/error.rb,
lib/groonga/client/response/defrag.rb,
lib/groonga/client/response/delete.rb,
lib/groonga/client/response/schema.rb,
lib/groonga/client/response/select.rb,
lib/groonga/client/response/status.rb,
lib/groonga/client/response/log-put.rb,
lib/groonga/client/response/register.rb,
lib/groonga/client/response/log-level.rb,
lib/groonga/client/response/lock-clear.rb,
lib/groonga/client/response/log-reopen.rb,
lib/groonga/client/response/searchable.rb,
lib/groonga/client/response/table-list.rb,
lib/groonga/client/response/cache-limit.rb,
lib/groonga/client/response/column-list.rb,
lib/groonga/client/response/table-create.rb,
lib/groonga/client/response/table-remove.rb,
lib/groonga/client/response/column-create.rb,
lib/groonga/client/response/column-remove.rb,
lib/groonga/client/response/column-rename.rb,
lib/groonga/client/response/drilldownable.rb,
lib/groonga/client/response/logical-select.rb,
lib/groonga/client/response/logical-range-filter.rb
Defined Under Namespace
Modules: Drilldownable, Searchable Classes: Base, CacheLimit, Check, ColumnCreate, ColumnList, ColumnRemove, ColumnRename, Defrag, Delete, Dump, Error, Load, LockClear, LogLevel, LogPut, LogReopen, LogicalRangeFilter, LogicalSelect, Quit, Register, Schema, Select, Status, TableCreate, TableList, TableRemove
Constant Summary collapse
- @@registered_commands =
{}
Class Method Summary collapse
- .find(name) ⇒ Object
-
.parse(command, raw_response) ⇒ Base
Parses the response for the request of the command and returns response object.
- .register(name, klass) ⇒ Object
Class Method Details
.find(name) ⇒ Object
37 38 39 |
# File 'lib/groonga/client/response/base.rb', line 37 def find(name) @@registered_commands[normalize_name(name)] || Base end |
.parse(command, raw_response) ⇒ Base
Parses the response for the request of the command and returns response object.
50 51 52 53 |
# File 'lib/groonga/client/response/base.rb', line 50 def parse(command, raw_response) klass = find(command.command_name) klass.parse(command, raw_response) end |
.register(name, klass) ⇒ Object
33 34 35 |
# File 'lib/groonga/client/response/base.rb', line 33 def register(name, klass) @@registered_commands[normalize_name(name)] = klass end |