Allows access to entities on user object #350

Closed
wants to merge 1 commit into
from

Projects

None yet

2 participants

@zainzafar

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

Without this change:

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

With this change

user = Twitter.user('zanzaf')
user.entities
 => {:description=>{:urls=>[]}}
@sferik sferik added a commit that closed this pull request Feb 6, 2013
@sferik 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.
19c176c
@sferik sferik closed this in 19c176c Feb 6, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment