Class: GdsApi::SearchApiV2

Inherits:
Base
  • Object
show all
Defined in:
lib/gds_api/search_api_v2.rb

Instance Attribute Summary

Attributes inherited from Base

#options

Instance Method Summary collapse

Methods inherited from Base

#client, #create_client, #get_list, #initialize, #url_for_slug

Constructor Details

This class inherits a constructor from GdsApi::Base

Instance Method Details

#search(args, additional_headers = {}) ⇒ Object



3
4
5
6
# File 'lib/gds_api/search_api_v2.rb', line 3

def search(args, additional_headers = {})
  request_url = "#{endpoint}/search.json?#{Rack::Utils.build_nested_query(args)}"
  get_json(request_url, additional_headers)
end