Method: BitBucket::Result#last_page
- Defined in:
- lib/bitbucket_rest_api/result.rb
#last_page ⇒ Object
Retrives the result of the last page. Returns nil
if there is no last page - either because you are already on the last page, there is only one page or there are no pages at all in the result.
105 106 107 108 109 |
# File 'lib/bitbucket_rest_api/result.rb', line 105 def last_page last_request = page_iterator.last self.instance_eval { @env = last_request.env } if last_request self.body end |