File: list_result.py

package info (click to toggle)
chargebee2-python 2.7.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 644 kB
  • sloc: python: 2,035; makefile: 3; sh: 3
file content (13 lines) | stat: -rw-r--r-- 314 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
from chargebee.result import Result


class ListResult(list):
    
    def __init__(self, response, next_offset):
        self.response = response
        self.next_offset = next_offset
        self._init_items()

    def _init_items(self):
        for item in self.response:
            self.append(Result(item))