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

Instance Method Details

#account_urlObject



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

def 
  "http://twitter.com/#{self.}"
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 (auth_hash)
  self.token              = auth_hash['credentials']['token']
  self.secret             = auth_hash['credentials']['secret']
  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']
end