lib/pupil/base.rb in pupil-0.6.1 vs lib/pupil/base.rb in pupil-0.6.2

- old
+ new

@@ -10,21 +10,21 @@ TWITTER_API_URL = "http://api.twitter.com" # @param [Hash] pupil_key def initialize key - @screen_name = key[:screen_name] || nil - @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] ) + + @screen_name = key[:screen_name] || self.profile.screen_name end include Essentials end \ No newline at end of file