Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Allows access to entities on user object #350

wants to merge 1 commit into from

2 participants

Zain Zafar Erik Michaels-Ober
Zain Zafar

With this change, you can access the entities returned in the response for a user.

Without this change:

user = Twitter.user('zanzaf')
NoMethodError: undefined method `entities' for #<Twitter::User:0x007f95a3d65278>

With this change

user = Twitter.user('zanzaf')
 => {:description=>{:urls=>[]}}
Erik Michaels-Ober sferik closed this pull request from a commit
Erik Michaels-Ober Add User#description_urls
Instead of providing direct access to entities, expose a method that
returns Twitter::Entity::Url objects, similar to how entities are
accessed on Status objects.

Closes #350.
Erik Michaels-Ober sferik closed this in 19c176c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 6, 2013
  1. Zain Zafar
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/twitter/user.rb
2  lib/twitter/user.rb
@@ -16,7 +16,7 @@ class User < Twitter::BasicUser
:profile_link_color, :profile_sidebar_border_color,
:profile_sidebar_fill_color, :profile_text_color,
:profile_use_background_image, :protected, :statuses_count, :time_zone,
- :url, :utc_offset, :verified
+ :url, :utc_offset, :verified, :entities
alias favorite_count favourites_count
alias favoriters_count favourites_count
alias favorites_count favourites_count
Something went wrong with that request. Please try again.