Module: Groonga::Client::Request

Defined in:
lib/groonga/client/request.rb,
lib/groonga/client/request/error.rb,
lib/groonga/client/request/select.rb,
lib/groonga/client/request/generic.rb

Defined Under Namespace

Classes: FlagsParameter, Generic, OverwriteMerger, ParameterMerger, RequestParameter, Select, ValuesParameter

Constant Summary collapse

Error =

For backward compatibility

Client::Error
ErrorResponse =
Client::ErrorResponse
@@requests =
{}

Class Method Summary collapse

Class Method Details

.find(name) ⇒ Object



26
27
28
# File 'lib/groonga/client/request.rb', line 26

def find(name)
  @@requests[name.to_s] || Generic
end

.register(request_class) ⇒ Object



22
23
24
# File 'lib/groonga/client/request.rb', line 22

def register(request_class)
  @@requests[request_class.command_name] = request_class
end