Sha256: 6fd07658d4e7bbb52d1019f6370fae8a840c44c6e924e8b6edd747f38af360d5
Contents?: true
Size: 560 Bytes
Versions: 5
Compression:
Stored size: 560 Bytes
Contents
module Omnisocial class TwitterAccount < LoginAccount 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 def account_url "http://twitter.com/#{self.login}" end end end
Version data entries
5 entries across 5 versions & 1 rubygems