Class: SocialAvatarProxy::FacebookAvatar
- Defined in:
- lib/social_avatar_proxy/facebook_avatar.rb
Instance Attribute Summary
Attributes inherited from Avatar
Instance Method Summary collapse
Methods inherited from Avatar
#body, #content_type, #exist?, #file, #initialize, #last_modified
Constructor Details
This class inherits a constructor from SocialAvatarProxy::Avatar
Instance Method Details
#remote_url ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/social_avatar_proxy/facebook_avatar.rb', line 5 def remote_url if identifier =~ /^[\w\-\.]+$/i "https://graph.facebook.com/#{identifier}/picture?width=73&height=73" else raise RuntimeError, "Identifier contains invalid characters" end end |