Sha256: d3c106bf1bc51004c0bfc4ec673eba301b21df11a9b4288796af16b1781bb6ba
Contents?: true
Size: 491 Bytes
Versions: 1
Compression:
Stored size: 491 Bytes
Contents
module Omnisocial class TwitterAccount < LoginAccount 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 def account_url "http://twitter.com/#{self.login}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
elecnix-omnisocial-0.1.5 | app/models/omnisocial/twitter_account.rb |