Included Modules

Class/Module Index [+]

Quicksearch

Twitter::User

Attributes

connections[R]
contributors_enabled[R]
default_profile[R]
default_profile_image[R]
description[R]
favorites_count[R]
favourites_count[R]
follow_request_sent[R]
followers_count[R]
friends_count[R]
geo_enabled[R]
is_translator[R]
lang[R]
listed_count[R]
location[R]
name[R]
notifications[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_background_tile[R]
profile_sidebar_border_color[R]
profile_sidebar_fill_color[R]
profile_text_color[R]
profile_use_background_image[R]
protected[R]
statuses_count[R]
time_zone[R]
translator?[R]
tweets_count[R]
utc_offset[R]
verified[R]

Public Instance Methods

description_uris() click to toggle source

@return [Array<Twitter::Entity::URI>]

# File lib/twitter/user.rb, line 36
def description_uris
  Array(@attrs[:entities][:description][:urls]).map do |entity|
    Entity::URI.new(entity)
  end
end
Also aliased as: description_urls
description_urls() click to toggle source
Alias for: description_uris
uri() click to toggle source

@return [String] The URL to the user.

# File lib/twitter/user.rb, line 45
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 52
def website
  Addressable::URI.parse(@attrs[:url]) unless @attrs[:url].nil?
end
website?() click to toggle source
# File lib/twitter/user.rb, line 57
def website?
  !!@attrs[:url]
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.