NasaApod
A Ruby gem for consuming the NASA Astronomy Picture of the Day API.
Installation
Add this line to your application's Gemfile:
gem 'nasa_apod'
And then execute:
$ bundle
Or install it yourself as:
$ gem install nasa_apod
Usage
client = NasaApod::Client.new(api_key: "DEMO_KEY") #DEMO_KEY usage is limited.
result = client.search(date: "2015-06-18") #You can also pass in a Ruby Date object.
result
Contributing
- Fork it ( https://github.com/[my-github-username]/nasa_apod/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request