Return the URL to the user's profile image
@param size [String, Symbol] The size of the image. Must be one of: 'mini', 'normal', 'bigger' or 'original' @return [String]
# File lib/twitter/user.rb, line 48 def profile_image_url(size=:normal) # The profile image URL comes in looking like like this: # http://a0.twimg.com/profile_images/1759857427/image1326743606_normal.png # It can be converted to any of the following sizes: # http://a0.twimg.com/profile_images/1759857427/image1326743606.png # http://a0.twimg.com/profile_images/1759857427/image1326743606_mini.png # http://a0.twimg.com/profile_images/1759857427/image1326743606_bigger.png resize_profile_image_url(@attrs[:profile_image_url], size) end
Return the secure URL to the user's profile image
@param size [String, Symbol] The size of the image. Must be one of: 'mini', 'normal', 'bigger' or 'original' @return [String]
# File lib/twitter/user.rb, line 62 def profile_image_url_https(size=:normal) # The profile image URL comes in looking like like this: # https://a0.twimg.com/profile_images/1759857427/image1326743606_normal.png # It can be converted to any of the following sizes: # https://a0.twimg.com/profile_images/1759857427/image1326743606.png # https://a0.twimg.com/profile_images/1759857427/image1326743606_mini.png # https://a0.twimg.com/profile_images/1759857427/image1326743606_bigger.png resize_profile_image_url(@attrs[:profile_image_url_https], size) end
Generated with the Darkfish Rdoc Generator 2.