@@ -13,13 +13,6 @@ class PromotedAccount(Resource, Persistence):
13
13
RESOURCE_STATS = '/0/stats/accounts/{account_id}/promoted_accounts'
14
14
RESOURCE = '/0/accounts/{account_id}/promoted_accounts/{id}'
15
15
16
- def __init__ (self , account ):
17
- self ._account = account
18
-
19
- @property
20
- def account (self ):
21
- return self ._account
22
-
23
16
# promoted account properties
24
17
# read-only
25
18
resource_property (PromotedAccount , 'id' , readonly = True )
@@ -39,13 +32,6 @@ class PromotedTweet(Resource, Persistence, Analytics):
39
32
RESOURCE_STATS = '/0/stats/accounts/{account_id}/promoted_tweets'
40
33
RESOURCE = '/0/accounts/{account_id}/promoted_tweets/{id}'
41
34
42
- def __init__ (self , account ):
43
- self ._account = account
44
-
45
- @property
46
- def account (self ):
47
- return self ._account
48
-
49
35
def save (self ):
50
36
"""
51
37
Saves or updates the current object instance depending on the
@@ -87,13 +73,6 @@ class Video(Resource, Persistence):
87
73
RESOURCE_COLLECTION = '/0/accounts/{account_id}/videos'
88
74
RESOURCE = '/0/accounts/{account_id}/videos/{id}'
89
75
90
- def __init__ (self , account ):
91
- self ._account = account
92
-
93
- @property
94
- def account (self ):
95
- return self ._account
96
-
97
76
# video properties
98
77
# read-only
99
78
resource_property (Video , 'id' , readonly = True )
@@ -116,13 +95,6 @@ class WebsiteCard(Resource, Persistence):
116
95
RESOURCE_COLLECTION = '/0/accounts/{account_id}/cards/website'
117
96
RESOURCE = '/0/accounts/{account_id}/cards/website/{id}'
118
97
119
- def __init__ (self , account ):
120
- self ._account = account
121
-
122
- @property
123
- def account (self ):
124
- return self ._account
125
-
126
98
# website card properties
127
99
# read-only
128
100
resource_property (WebsiteCard , 'id' , readonly = True )
@@ -143,13 +115,6 @@ class LeadGenCard(Resource, Persistence):
143
115
RESOURCE_COLLECTION = '/0/accounts/{account_id}/cards/lead_gen'
144
116
RESOURCE = '/0/accounts/{account_id}/cards/lead_gen/{id}'
145
117
146
- def __init__ (self , account ):
147
- self ._account = account
148
-
149
- @property
150
- def account (self ):
151
- return self ._account
152
-
153
118
# lead gen card properties
154
119
# read-only
155
120
resource_property (LeadGenCard , 'id' , readonly = True )
@@ -178,13 +143,6 @@ class AppDownloadCard(Resource, Persistence):
178
143
RESOURCE_COLLECTION = '/0/accounts/{account_id}/cards/app_download'
179
144
RESOURCE = '/0/accounts/{account_id}/cards/app_download/{id}'
180
145
181
- def __init__ (self , account ):
182
- self ._account = account
183
-
184
- @property
185
- def account (self ):
186
- return self ._account
187
-
188
146
# app download card properties
189
147
# read-only
190
148
resource_property (AppDownloadCard , 'id' , readonly = True )
@@ -211,13 +169,6 @@ class ImageAppDownloadCard(Resource, Persistence):
211
169
RESOURCE_COLLECTION = '/0/accounts/{account_id}/cards/image_app_download'
212
170
RESOURCE = '/0/accounts/{account_id}/cards/image_app_download/{id}'
213
171
214
- def __init__ (self , account ):
215
- self ._account = account
216
-
217
- @property
218
- def account (self ):
219
- return self ._account
220
-
221
172
# image app download card properties
222
173
# read-only
223
174
resource_property (ImageAppDownloadCard , 'id' , readonly = True )
@@ -243,13 +194,6 @@ class VideoAppDownloadCard(Resource, Persistence):
243
194
RESOURCE_COLLECTION = '/0/accounts/{account_id}/cards/video_app_download'
244
195
RESOURCE = '/0/accounts/{account_id}/cards/video_app_download/{id}'
245
196
246
- def __init__ (self , account ):
247
- self ._account = account
248
-
249
- @property
250
- def account (self ):
251
- return self ._account
252
-
253
197
# video app download card properties
254
198
# read-only
255
199
resource_property (VideoAppDownloadCard , 'id' , readonly = True )
@@ -278,13 +222,6 @@ class ImageConversationCard(Resource, Persistence):
278
222
RESOURCE_COLLECTION = '/0/accounts/{account_id}/cards/image_conversation'
279
223
RESOURCE = '/0/accounts/{account_id}/cards/image_conversation/{id}'
280
224
281
- def __init__ (self , account ):
282
- self ._account = account
283
-
284
- @property
285
- def account (self ):
286
- return self ._account
287
-
288
225
# image conversation card properties
289
226
# read-only
290
227
resource_property (ImageConversationCard , 'id' , readonly = True )
@@ -309,13 +246,6 @@ class VideoConversationCard(Resource, Persistence):
309
246
RESOURCE_COLLECTION = '/0/accounts/{account_id}/cards/video_conversation'
310
247
RESOURCE = '/0/accounts/{account_id}/cards/video_conversation/{id}'
311
248
312
- def __init__ (self , account ):
313
- self ._account = account
314
-
315
- @property
316
- def account (self ):
317
- return self ._account
318
-
319
249
# video conversation card properties
320
250
# read-only
321
251
resource_property (VideoConversationCard , 'id' , readonly = True )
0 commit comments