Sha256: a07adf6c8803a887698f1a1b589eb6006135a5d27fa96c1ac20cd28043d94cf8
Contents?: true
Size: 458 Bytes
Versions: 1
Compression:
Stored size: 458 Bytes
Contents
require 'httparty' module Stickybits URL = "http://api.stickybits.com/api/1/" class << self attr_accessor :apikey def configure yield self end end module Code def self.get(codeid, parameters = {}) parameters.merge!(:apikey => Stickybits.apikey) parameters.merge!(:codeid => codeid) HTTParty.get(URI.escape("#{URL}code.get"), :query => parameters) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stickybits-0.0.4 | lib/stickybits.rb |