File: paginated_result.py

package info (click to toggle)
python-braintree 4.31.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,576 kB
  • sloc: python: 28,946; makefile: 9; sh: 8
file content (9 lines) | stat: -rw-r--r-- 293 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
class PaginatedResult(object):
    """
    An instance of this class is returned from paginated operations
    """

    def __init__(self, total_items, page_size, current_page):
        self.total_items = total_items
        self.page_size = page_size
        self.current_page = current_page