Method: Twitter::Profile#profile_image_uri

Defined in:
lib/twitter/profile.rb

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

Returns the URL to the user's profile image

Examples:

user.profile_image_uri(:normal)

Parameters:

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

    The size of the image

Returns:

  • (URI::Generic)


70
71
72
# File 'lib/twitter/profile.rb', line 70

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