class RangeRequest

Returns the minium and maximum values currently in 3taps for the given fields that match the given Common Search Criteria. The purpose of the range method is to provide developers with sensible values for range-based UI filters.

range_request = RangeRequest.new search_request = SearchRequest.new search_request.category = 'VAUT' search_request.annotations = {:Make => “porsche”} range_request.search_request = search_request range_request.fields = ['year', 'price']

Public Instance Methods

add_field(field) click to toggle source
# File lib/dto/search/range_request.rb, line 14
def add_field(field)
  fields << field
end
query_params() click to toggle source
# File lib/dto/search/range_request.rb, line 18
def query_params
  query_params = search_request.query_params
  query_params += "fields=#{CGI.escape(fields.join(','))}"
  query_params
end