def fetch(self, resource_data=None):
        """Populates this class with remote data"""
        if not self._populated:
            params = {
                "Page"      : self.page,
                "PageSize"  : self.page_size,
            }

            params.update(self._filters)

            if not resource_data:
                self._resource_data = self._client._get(self._url + ".json", params)
            else:
                self._resource_data = resource_data

            self.total = self._resource_data["total"]
            self._page_start = self._resource_data["start"]
            self._page_end = self._resource_data["end"]

            self._populated = True
def fetch ( self , resource_data = None ) : if not self . _populated : params = { "Page" : self . page , "PageSize" : self . page_size , } params . update ( self . _filters ) if not resource_data : self . _resource_data = self . _client . _get ( self . _url + ".json" , params ) else : self . _resource_data = resource_data self . total = self . _resource_data [ "total" ] self . _page_start = self . _resource_data [ "start" ] self . _page_end = self . _resource_data [ "end" ] self . _populated = True
Populates this class with remote data