|
1 | 1 | # -*- coding: utf-8 -*- |
2 | 2 |
|
| 3 | +import pprint |
3 | 4 | from .exceptions import NoSessionError, ModelNotFoundError, APIError |
4 | 5 |
|
5 | | -__all__ = ['Advertiser', 'Campaign', 'Creative', 'Fallback', 'Network', 'Placement', |
6 | | - 'Profile', 'Publisher', 'Segment', 'Site', 'User'] |
| 6 | +__all__ = ['Advertiser', 'Bidder', 'Browser', 'Campaign', 'Category', 'ConnectionType', |
| 7 | + 'ConversionPixel', 'Country', 'Creative', 'Datacenter', 'DeviceType', |
| 8 | + 'Domain', 'Fallback', 'Isp', 'Languages', 'Network', 'OperatingSystem', |
| 9 | + 'Placement', 'Profile', 'Publisher', 'Reason', 'Segment', 'Seller', |
| 10 | + 'Site', 'Size', 'User'] |
7 | 11 |
|
8 | 12 |
|
9 | 13 | class AtomxModel(object): |
@@ -41,7 +45,7 @@ def __setattr__(self, key, value): |
41 | 45 | self._dirty.add(key) |
42 | 46 |
|
43 | 47 | def __repr__(self): |
44 | | - return '{}({})'.format(self.__class__.__name__, self._attributes) |
| 48 | + return '{}({})'.format(self.__class__.__name__, pprint.pformat(self.json)) |
45 | 49 |
|
46 | 50 | @property |
47 | 51 | def _dirty_json(self): |
|
0 commit comments