lib/social_profile/person.rb in social_profile-0.1.4 vs lib/social_profile/person.rb in social_profile-0.2.0
- old
+ new
@@ -1,11 +1,10 @@
-# encoding: utf-8
require "social_profile/version"
module SocialProfile
class Person
- attr_reader :uid, :access_token
+ attr_reader :uid, :access_token, :options
def initialize(uid, access_token, options = {})
@uid = uid
@access_token = access_token
@options = options
@@ -15,10 +14,11 @@
return if provider.nil?
klass = case provider.to_s
when "facebook" then People::Facebook
when "vkontakte" then People::Vkontakte
+ when "twitter" then People::Twitter
else Person
end
klass.new(uid, access_token, options)
end
@@ -63,8 +63,18 @@
tags = Array.wrap(tags)
return if tags.empty? || object.nil?
object.tag!(:tags => tags)
+ end
+
+ # Get friends count
+ def friends_count(options = {})
+ nil
+ end
+
+ # Get followers count
+ def followers_count(options = {})
+ nil
end
end
end
\ No newline at end of file