Skip to content

Commit

Permalink
change from r.get_info() to r.limits (#102)
Browse files Browse the repository at this point in the history
I get 
> AttributeError: 'RateLimits' object has no attribute 'get_info'
But r.limits gives me the desired output.
  • Loading branch information
keatonb authored and vsudilov committed Mar 22, 2018
1 parent fb790c2 commit 9f47ed1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/index.rst
Expand Up @@ -136,8 +136,8 @@ or::
>>> q = ads.SearchQuery(q='star')
>>> for paper in q:
>>> print(paper.title, paper.citation_count)
>>> r.get_info()
{'SearchQuery': {'limit': '5000', 'remaining': '4899', 'reset': '1459987200'}}
>>> r.limits
{'limit': '5000', 'remaining': '4899', 'reset': '1459987200'}

If you prefer to use your own mocking package, or mock your responses manually,
you can access both the stubdata and HTTPretty mocks from the package::
Expand Down

0 comments on commit 9f47ed1

Please sign in to comment.