Class: Omnisocial::LinkedInAccount
Instance Method Summary
collapse
create_from_auth_hash, find_or_create_from_auth_hash, #find_or_create_user
Instance Method Details
#account_url ⇒ Object
10
11
12
|
# File 'app/models/omnisocial/linked_in_account.rb', line 10
def account_url
"http://www.linkedin.com/profile/view?id=#{self.remote_account_id}"
end
|
#assign_account_info(auth_hash) ⇒ Object
3
4
5
6
7
8
|
# File 'app/models/omnisocial/linked_in_account.rb', line 3
def assign_account_info(auth_hash)
self.remote_account_id = auth_hash['uid']
self.picture_url = auth_hash['user_info']['image']
self.name = auth_hash['user_info']['first_name']
self.access_token = auth_hash['credentials']['token']
end
|