app/models/concerns/twitter_user/raw_attrs.rb
# A url written on profile page as a home page url
A url written on profile page as a home page url
A url written on profile page as a home page url
def url
    return nil if entities.nil? || entities.url.nil? || entities.url.urls.nil?
    urls = entities.url.urls
    urls.any? ? (urls[0].expanded_url || urls[0].url) : nil
  rescue => e
    logger.warn "#{e.class}: #{e.message} #{entities}"
    nil
  end
def url return nil if entities . nil? || entities . url . nil? || entities . url . urls . nil? urls = entities . url . urls urls . any? ? ( urls [ 0 ] . expanded_url || urls [ 0 ] . url ) : nil rescue => e logger . warn "#{e.class}: #{e.message} #{entities}" nil end
A url written on profile page as a home page url
A url written on profile page as a home page url