Included Modules

Class/Module Index [+]

Quicksearch

Twitter::User

Attributes

connections[R]
contributors_enabled[R]
contributors_enabled?[R]
default_profile[R]
default_profile?[R]
default_profile_image[R]
default_profile_image?[R]
description[R]
favorite_count[R]
favorites_count[R]
favourite_count[R]
favourites_count[R]
follow_request_sent[R]
follow_request_sent?[R]
follower_count[R]
followers_count[R]
friend_count[R]
friends_count[R]
geo_enabled[R]
geo_enabled?[R]
is_translator[R]
is_translator?[R]
lang[R]
listed_count[R]
location[R]
name[R]
notifications[R]
notifications?[R]
profile_background_color[R]
profile_background_image_url[R]
profile_background_image_url_https[R]
profile_background_tile[R]
profile_background_tile?[R]
profile_sidebar_border_color[R]
profile_sidebar_fill_color[R]
profile_text_color[R]
profile_use_background_image[R]
profile_use_background_image?[R]
protected[R]
protected?[R]
status_count[R]
statuses_count[R]
time_zone[R]
translator[R]
translator?[R]
tweet_count[R]
tweets_count[R]
update_count[R]
updates_count[R]
url[R]
utc_offset[R]
verified[R]
verified?[R]

Public Instance Methods

profile_image_url(size=:normal) click to toggle source

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
profile_image_url_https(size=:normal) click to toggle source

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
status() click to toggle source

@return [Twitter::Tweet]

# File lib/twitter/user.rb, line 73
def status
  @status ||= Twitter::Tweet.fetch_or_new(@attrs.dup[:status].merge(:user => @attrs.except(:status))) unless @attrs[:status].nil?
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.