Gannet
A RubyGem wrapp for AirNow's API
Installation
gem install gannetor in your Gemfile...
gem 'gannet'Configuration
You will need to set your AirNow api_key before making requests. You can get one here.
Gannet.configure do |c|
c.api_key = 'YOUR_API_KEY'
endUsage / Examples (TODO)
Once configured, you have access to the below methods. They correspond to the available endpoints, listed on AirNow's API.
query = { zipCode: 94118 }
Gannet::WebServices.forecast_zip_code(query)
# ... In ProgressFull documentation on what can be in query can be found in AirNow's API documentation here