🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

glide

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

glide

0.0.5
Rubygems
Version published
Maintainers
1
Created
Source

Glide Build Status Dependency Status

=====

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.

Installation

with bundler:

gem 'glide'

without bundler:

sudo gem install 'glide'

Usage

Set your API access key:

Glide::api_key = "YourKeyGoesHere"

Do a query:

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

Submitting an Issue

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.

Submitting a Pull Request

  • 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.

FAQs

Package last updated on 11 May 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts