class DataGov::API
Public Instance Methods
client()
click to toggle source
# File lib/data_gov/API.rb, line 13 def client @client ||= DataGov::Client.new end
harvest_object(id)
click to toggle source
# File lib/data_gov/API.rb, line 9 def harvest_object(id) client.get("/harvest/object/#{id}") end
search(params = {})
click to toggle source
@return [Enumerator]
# File lib/data_gov/API.rb, line 5 def search(params = {}) client.paginated_get('/api/3/action/package_search', 'results', params) end