Class: Omnisocial::TwitterAccount

Inherits:
LoginAccount
  • Object
show all
Defined in:
app/models/omnisocial/twitter_account.rb

Instance Method Summary collapse

Methods inherited from LoginAccount

create_from_auth_hash, find_or_create_from_auth_hash, #find_or_create_user

Instance Method Details

#account_urlObject



11
12
13
# File 'app/models/omnisocial/twitter_account.rb', line 11

def 
  "http://twitter.com/#{self.}"
end

#assign_account_info(auth_hash) ⇒ Object



3
4
5
6
7
8
9
# File 'app/models/omnisocial/twitter_account.rb', line 3

def (auth_hash)
  self.  = auth_hash['uid']
  self.              = 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