Method: Twitter::Profile#profile_image_uri

Defined in:
lib/twitter/profile.rb

#profile_image_uri(size = :normal) ⇒ Addressable::URI Also known as: profile_image_url

Return the URL to the user's profile image

Parameters:

  • size (String, Symbol) (defaults to: :normal)

    The size of the image. Must be one of: 'mini', 'normal', 'bigger' or 'original'

Returns:

  • (Addressable::URI)


54
55
56
# File 'lib/twitter/profile.rb', line 54

def profile_image_uri(size = :normal)
  parse_uri(insecure_uri(profile_image_uri_https(size))) unless @attrs[:profile_image_url_https].nil?
end