Class: Omnisocial::TwitterAccount
Instance Method Summary
collapse
create_from_auth_hash, find_or_create_from_auth_hash, #find_or_create_user
Instance Method Details
#account_url ⇒ Object
11
12
13
|
# File 'app/models/omnisocial/twitter_account.rb', line 11
def account_url
"http://twitter.com/#{self.login}"
end
|
#assign_account_info(auth_hash) ⇒ Object
3
4
5
6
7
8
9
|
# File 'app/models/omnisocial/twitter_account.rb', line 3
def assign_account_info(auth_hash)
self.remote_account_id = auth_hash['uid']
self.login = auth_hash['user_info']['nickname']
self.picture_url = auth_hash['user_info']['image']
self.name = auth_hash['user_info']['name']
self.access_token = auth_hash['credentials']['token']
end
|