Class: DataGov::API
- Inherits:
-
Object
- Object
- DataGov::API
- Defined in:
- lib/data_gov/API.rb
Instance Method Summary collapse
Instance Method Details
#client ⇒ Object
13 14 15 |
# File 'lib/data_gov/API.rb', line 13 def client @client ||= DataGov::Client.new end |
#harvest_object(id) ⇒ Object
9 10 11 |
# File 'lib/data_gov/API.rb', line 9 def harvest_object(id) client.get("/harvest/object/#{id}") end |
#search(params = {}) ⇒ Enumerator
5 6 7 |
# File 'lib/data_gov/API.rb', line 5 def search(params = {}) client.paginated_get('/api/3/action/package_search', 'results', params) end |