WeatherFunds
Ruby interface to lottery results from http://weatherfunds.co.uk
Installation
Add this line to your application's Gemfile:
gem 'weather_funds'
And then execute:
$ bundle
Or install it yourself as:
$ gem install weather_funds
Usage
require 'weather_funds'
# Sunshine and Lightning are both supported
sunshine = WeatherFunds::Sunshine.new
# Find your lottery
lottery = sunshine.find(name)
# Or find by scheme idenifier
lottery = sunshine.find_by_scheme(scheme)
# Get the results. Returns array of date and data
sunshine.results
# Get the winners for your lottery. Returns name and prize amount
lottery.winners
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