=====
The glide gem is a simple wrapper around the Glide UK api to retrieve quotes for the individual services you require in one go and sum up the totals.
gem 'glide'
sudo gem install 'glide'
Glide::api_key = "YourKeyGoesHere"
quotes = Glide.get_quote(["elec", "water", "gas"], {"water" => "SW1 0AA"}, 6, 1)
where the paramaters are as follows:
Glide.get_quote(service, extra, period, tenants)
service: Can be one or any combination of elec, water, gas, telephone, broadband and tv_license
extra: required additional information for certain services:
- for elec 'green', 'nogas' or 'green,nogas' is optional
- for water postcode is required
- for broadband llu24s for standard broadband or llu24p for premium broadband is required
We use the GitHub issue tracker to track bugs and features. Before submitting a bug report or feature request, check to make sure it hasn't already been submitted. When submitting a bug report, please include a Gist that includes a stack trace and any details that may be necessary to reproduce the bug, including your gem version, Ruby version, and operating system. Ideally, a bug report should include a pull request with failing specs.
- Fork the repository.
- Create a topic branch.
- Add specs for your unimplemented feature or bug fix.
- Run
bundle exec rake spec
. If your specs pass, return to step 3. - Implement your feature or bug fix.
- Run
bundle exec rake spec
. If your specs fail, return to step 5. - Run
open coverage/index.html
. If your changes are not completely covered by your tests, return to step 3. - Add documentation for your feature or bug fix.
- Run
bundle exec rake yard
. If your changes are not 100% documented, go back to step 8. - Add, commit, and push your changes.
- Submit a pull request.
Copyright (c) 2012 Volker Pacher See LICENSE for details.