Class: Fiddler::Formatters::SearchRequestFormatter
- Inherits:
-
BaseFormatter
- Object
- BaseFormatter
- Fiddler::Formatters::SearchRequestFormatter
- Defined in:
- lib/fiddler/formatters/search_request_formatter.rb
Class Method Summary collapse
Methods inherited from BaseFormatter
Class Method Details
.format(options = {}) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/fiddler/formatters/search_request_formatter.rb', line 5 def format(={}) result = Hash.new unless .empty? query = Array.new add_array_or_single(, query, :queue) add_array_or_single(, query, :status) add_text_search_fields(,query) add_date_search_fields(,query) query << [:conditions].to_s.chomp if [:conditions] result = { "query" => query.join(" AND "), :format => "l"} end result end |