Sha256: 3081f82d4eb00886c0831d5fdb20939f75c2929e6819c05e1a45ccd319335511
Contents?: true
Size: 577 Bytes
Versions: 2
Compression:
Stored size: 577 Bytes
Contents
require "rubygems" require "net/http" require "uri" require "oauth" require "json" class Pupil attr_reader :screen_name class NetworkError < StandardError ; end TWITTER_API_URL = "http://api.twitter.com" # @param [Hash] pupil_key def initialize key @screen_name = key[:screen_name] @consumer = OAuth::Consumer.new( key[:consumer_key], key[:consumer_secret], :site => TWITTER_API_URL ) @access_token = OAuth::AccessToken.new( @consumer, key[:access_token], key[:access_token_secret] ) end include Essentials end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pupil-0.2.1 | lib/pupil/base.rb |
pupil-0.2.0 | lib/pupil/base.rb |