Project

gannet

0.0
No release in over 3 years
RubyGem for AirNow, in order to get air quality information
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 0.13.1
~> 3.9.0

Runtime

~> 0.18.1
 Project Readme

Gannet

A RubyGem wrapp for AirNow's API

Installation

gem install gannet

or 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'
end

Usage / 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 Progress

Full documentation on what can be in query can be found in AirNow's API documentation here