Nanopop
Fetches information on Nanopop API.
Installation
Add this line to your application's Gemfile:
gem 'nanopop'
And then execute:
$ bundle
Or install it yourself as:
$ gem install nanopop
Usage
Config your token in a config or initializer file:
Nanopop.configure do |config|
config.token = '1234'
end
Now you can fetch latest pictures:
pictures = Nanopop::Picture.latest(10)
pictures.first.url
Contributing
- Fork it
- 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 new Pull Request