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]
entities?()
click to toggle source
@return [Boolean]
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.
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
if website_urls?
website_urls.first.expanded_url
else
Addressable::URI.parse(@attrs[:url])
end
end
website?()
click to toggle source
def website?
!!(website_uris? || @attrs[:url])
end