Object
# File lib/earthquake/twitter.rb, line 35 def initialize(options = {}) @consumer_key = options[:consumer_key] @consumer_secret = options[:consumer_secret] @token = options[:token] @secret = options[:secret] @proxy = ENV['http_proxy'] end
# File lib/earthquake/twitter.rb, line 43 def consumer options = { :site => 'http://api.twitter.com' } options.update( :proxy => @proxy ) if @proxy @consumer ||= OAuth::Consumer.new( @consumer_key, @consumer_secret, options ) end
[Validate]
Generated with the Darkfish Rdoc Generator 2.