Added method Twitter::SearchResults#next_results? #366

Merged
merged 1 commit into from Mar 15, 2013

Projects

None yet

3 participants

@KentonWhite

Returns true if there is a next page for a Twitter SearchResult.
Returns false otherwise

Aliased to next_page? for backward compatibility with v1 API

@KentonWhite KentonWhite Added method Twitter::SearchResults#next_results?
Returns true if there is a next page for a Twitter SearchResult.
Returns false otherwise

Aliased to next_page? for backward compatibility with v1 API
d951db4
@sferik
Owner

Looks good. Thanks for separating this out. 😄

@sferik sferik merged commit 7d9d6f9 into sferik:master Mar 15, 2013
@bcackerman

Ok, I'm confused do I do this to get to different pages of the results?

Twitter.search("#ruby", :next_results => "?")
@bcackerman

And to see if there's a second page I would do. This is giving me a no method error.

Twitter.search("#ruby", :next_results => "?").next_results?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment