Sha256: ba354ed797799a7c358be2786e26616cdb26f00bb948441761345fba5bc5c28f
Contents?: true
Size: 429 Bytes
Versions: 1
Compression:
Stored size: 429 Bytes
Contents
module VoteSmart API_URL = "http://api.votesmart.org/" API_FORMAT = "JSON" class << self attr_accessor :api_key end class RequestFailed < StandardError; end end VoteSmart.api_key = "key" require "#{File.dirname(__FILE__)}/vote_smart/common" Dir["#{File.dirname(__FILE__)}/vote_smart/*.rb"].each do |source_file| require source_file unless source_file == "#{File.dirname(__FILE__)}/vote_smart/common.rb" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
votesmart-0.4.1 | lib/vote_smart.rb |