Class: DescriptorsSearchRequest
- Inherits:
-
DescriptorsRequest
- Object
- Request
- DescriptorsRequest
- DescriptorsSearchRequest
- Defined in:
- lib/refworks/descriptors/search/descriptors_search_request.rb
Class Method Summary collapse
Methods inherited from DescriptorsRequest
call_class, generate_class_params
Methods inherited from Request
generate_signature, http_request_verb
Class Method Details
.call_method ⇒ Object
3 4 5 |
# File 'lib/refworks/descriptors/search/descriptors_search_request.rb', line 3 def self.call_method 'search' end |
.generate_request_info(params) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/refworks/descriptors/search/descriptors_search_request.rb', line 7 def self.generate_request_info(params) # get common Descriptors parameters class_params = generate_class_params(params) # query parameters for the search call method_params = { :method => call_method, :search => params[:search], } query_string_params = class_params.merge(method_params) # return the request info {:params => query_string_params} end |