Skip to content
This repository was archived by the owner on Jun 11, 2024. It is now read-only.

Commit 72ece6f

Browse files
committed
add more models, pprint object
1 parent d8c43ca commit 72ece6f

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

atomx/models.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
# -*- coding: utf-8 -*-
22

3+
import pprint
34
from .exceptions import NoSessionError, ModelNotFoundError, APIError
45

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']
711

812

913
class AtomxModel(object):
@@ -41,7 +45,7 @@ def __setattr__(self, key, value):
4145
self._dirty.add(key)
4246

4347
def __repr__(self):
44-
return '{}({})'.format(self.__class__.__name__, self._attributes)
48+
return '{}({})'.format(self.__class__.__name__, pprint.pformat(self.json))
4549

4650
@property
4751
def _dirty_json(self):

0 commit comments

Comments
 (0)