Skip to content
This repository has been archived by the owner on Dec 21, 2017. It is now read-only.

Latest commit

 

History

History
20 lines (13 loc) · 386 Bytes

Readme.mkd

File metadata and controls

20 lines (13 loc) · 386 Bytes

GStock

GStock is a really simple ruby library for retrieving stock quotes from Google's unofficial quote API.

Installation

$ (sudo) gem install gstock

Usage

require "rubygems"
require "gstock"

# Get a quote
puts GStock.quote("AAPL").last

If an invalid quote is passed in, GStock will respond by raising a GStock::NotFound exception.