Module: MicrosoftOpenData::Client::Api
- Included in:
- MicrosoftOpenData::Client
- Defined in:
- lib/microsoft_open_data/client/api.rb
Instance Method Summary collapse
-
#catalog(container = nil, options = {}) ⇒ Hash
Returns the lists of containers or list of datasets within a specified container.
-
#query(container, dataset, options = {}) ⇒ Hash
Returns all the data from a specific dataset.
Instance Method Details
#catalog(container = nil, options = {}) ⇒ Hash
Returns the lists of containers or list of datasets within a specified container
13 14 15 16 17 18 19 |
# File 'lib/microsoft_open_data/client/api.rb', line 13 def catalog(container=nil, ={}) if container.nil? get("", ) else get("#{container}", ) end end |
#query(container, dataset, options = {}) ⇒ Hash
Returns all the data from a specific dataset
30 31 32 |
# File 'lib/microsoft_open_data/client/api.rb', line 30 def query(container, dataset, ={}) get("#{container}/#{dataset}", ) end |