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_use_background_image[R]
description_uris()
click to toggle source
@return [Array<Twitter::Entity::URI>]
def description_uris
Array(@attrs[:entities][:description][:urls]).map do |entity|
Entity::URI.new(entity)
end
end
description_urls()
click to toggle source
uri()
click to toggle source
@return [String] The URL to the user.
def uri
Addressable::URI.parse("https://twitter.com/#{screen_name}") unless screen_name.nil?
end
url()
click to toggle source
website()
click to toggle source
@return [String] The URL to the user's website.
def website
Addressable::URI.parse(@attrs[:url]) unless @attrs[:url].nil?
end
website?()
click to toggle source
def website?
!!@attrs[:url]
end