Included Modules

Class/Module Index [+]

Quicksearch

Twitter::User

Attributes

connections[R]
description[R]
favorites_count[R]
favourites_count[R]
followers_count[R]
friends_count[R]
lang[R]
listed_count[R]
location[R]
name[R]
profile_background_color[R]
profile_background_image_uri[R]
profile_background_image_uri_https[R]
profile_background_image_url[R]
profile_background_image_url_https[R]
profile_sidebar_border_color[R]
profile_sidebar_fill_color[R]
profile_text_color[R]
statuses_count[R]
time_zone[R]
tweets_count[R]
utc_offset[R]

Public Instance Methods

entities?() click to toggle source

@return [Boolean]

# File lib/twitter/user.rb, line 76
def entities?
  !@attrs[:entities].nil? && @attrs[:entities].any? { |_, hash| hash[:urls].any? }
end
uri() click to toggle source

@return [String] The URL to the user.

# File lib/twitter/user.rb, line 82
def uri
  Addressable::URI.parse("https://twitter.com/#{screen_name}") unless screen_name.nil?
end
Also aliased as: url
url() click to toggle source
Alias for: uri
website() click to toggle source

@return [String] The URL to the user’s website.

# File lib/twitter/user.rb, line 89
def website
  if website_urls?
    website_urls.first.expanded_url
  else
    Addressable::URI.parse(@attrs[:url])
  end
end
website?() click to toggle source
# File lib/twitter/user.rb, line 98
def website?
  !!(website_uris? || @attrs[:url])
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.