ConsumerToken
For more information on FireEagle fireeagle.rubyforge.org/
# File lib/oauth/models/consumers/services/fireeagle_token.rb, line 13 def client @client||=FireEagle::Client.new :consumer_key => FireeagleToken.consumer.key, :consumer_secret => FireeagleToken.consumer.secret, :access_token => token, :access_token_secret => secret end
Returns the FireEagle User object fireeagle.rubyforge.org/classes/FireEagle/User.html
# File lib/oauth/models/consumers/services/fireeagle_token.rb, line 22 def fireeagle_user @fireeagle_user||=client.user end
gives you the best guess of a location for user. This returns the FireEagle Location object: fireeagle.rubyforge.org/classes/FireEagle/Location.html
# File lib/oauth/models/consumers/services/fireeagle_token.rb, line 29 def location fireeagle_user.best_guess.name end
Updates thes users location see: fireeagle.rubyforge.org/classes/FireEagle/Client.html#M000026
# File lib/oauth/models/consumers/services/fireeagle_token.rb, line 35 def update_location(location={}) client.update(location) end
Generated with the Darkfish Rdoc Generator 2.