lib/pupil.rb in pupil-0.0.3 vs lib/pupil.rb in pupil-0.0.4
- old
+ new
@@ -5,10 +5,13 @@
require 'uri'
require 'rubygems' if RUBY_VERSION < '1.9.0'
require 'oauth'
#require 'pp'
+$LOAD_PATH << File.dirname(File.expand_path(__FILE__)) if RUBY_VERSION >= '1.9.0'
+require 'pupil/keygen'
+
class Pupil
attr_reader :screen_name
class UnsupportedParameter < StandardError; end
@@ -73,10 +76,10 @@
def get_error_message
return self.root.get_text("error")
end
end
-
+
public
# @return [Hash] user profile
def verify_credentials
response = @access_token.get('/account/verify_credentials.xml')
\ No newline at end of file