Class: Omnisocial::TwitterAccount
Instance Method Summary
collapse
create_from_auth_hash, find_or_create_from_auth_hash
Instance Method Details
#account_url ⇒ Object
12
13
14
|
# File 'app/models/omnisocial/twitter_account.rb', line 12
def account_url
"http://twitter.com/#{self.login}"
end
|
#assign_account_info(auth_hash) ⇒ Object
3
4
5
6
7
8
9
10
|
# File 'app/models/omnisocial/twitter_account.rb', line 3
def assign_account_info(auth_hash)
self.token = auth_hash['credentials']['token']
self.secret = auth_hash['credentials']['secret']
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']
end
|