lib/consolidated_screening_list/query.rb
#
# The parameters we will use to query the API
#
# @return [Hash] API params. Default keys: [:q, :sources, :countries, :fuzzy_name, :size, :size, :offset]
#
The parameters we will use to query the API
The parameters we will use to query the API
def params
      params = @params.clone
      params[:countries] = params[:countries].join(",")
      params[:sources] = params[:sources].join(",")
      params.reject { |k, v| v.nil? }
    end
def params params = @params . clone params [ :countries ] = params [ :countries ] . join ( "," ) params [ :sources ] = params [ :sources ] . join ( "," ) params . reject { | k , v | v . nil? } end
The parameters we will use to query the API
The parameters we will use to query the API
API params. Default keys: [:q, :sources, :countries, :fuzzy_name, :size, :size, :offset]
API params . Default keys : [ : q : sources : countries : fuzzy_name : size : size : offset ]
Hash