def _parse(self, data):
        """Parse API response.

        :param dict data: Parsed JSON response from API 'data' key.

        :return: Image instances.
        :rtype: list.
        """
        super(Album, self)._parse(data)
        self.cover_id = data['cover']
        images = [Image(i['id'], i) for i in data['images']]
        self.image_ids[:] = [i.imgur_id for i in images]
        return images
def _parse ( self , data ) : super ( Album , self ) . _parse ( data ) self . cover_id = data [ 'cover' ] images = [ Image ( i [ 'id' ] , i ) for i in data [ 'images' ] ] self . image_ids [ : ] = [ i . imgur_id for i in images ] return images
Parse API response.

        :param dict data: Parsed JSON response from API 'data' key.

        :return: Image instances.
        :rtype: list.