Facile
API simplicity gem
Installation
Add this line to your application's Gemfile:
gem 'facile'
And then execute:
$ bundle
Or install it yourself as:
$ gem install facile
Usage
TODO: Write usage instructions here
An example script, to fetch the weather data from the BBC.
require 'facile'
class Foo < Facile::Api
self.url = 'http://open.live.bbc.co.uk/weather/feeds/en/{id}/3dayforecast.json'
end
foo = Foo.find('2643743')
# gets forecast date for the first day.
foo.forecastContent.forecasts.first.date
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