lib/social_profile/providers/base.rb in social_profile-0.1.0 vs lib/social_profile/providers/base.rb in social_profile-0.1.1
- old
+ new
@@ -56,10 +56,18 @@
end
def avatar_url
@avatar_url ||= info('image')
end
+
+ def picture_url
+ nil
+ end
+
+ def profile_url
+ nil
+ end
def city_name
@city_name ||= begin
loc = info('location')
loc.nil? ? nil : loc.split(',').pop().strip
@@ -72,14 +80,10 @@
def credentials
@credentials ||= (auth_hash['credentials'] || {})
end
- def profile_url
- nil
- end
-
# Возвращаемые значения: 1 - женский, 2 - мужской, 0 - без указания пола.
def gender
0
end
@@ -87,9 +91,13 @@
@email ||= info('email')
end
def token_expires_at
@token_expires_at ||= parse_datetime(credentials['expires_at'])
+ end
+
+ def birthday
+ nil
end
protected
def parse_datetime(value)