Class: Clayful::WishList

Inherits:
Object
  • Object
show all
Defined in:
lib/models/wish_list.rb

Constant Summary collapse

@@name =
'WishList'
@@path =
'wishlists'

Class Method Summary collapse

Class Method Details

.add_item(*args) ⇒ Object



16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/models/wish_list.rb', line 16

def self.add_item(*args)

	Clayful.call_api({
		'model_name'       => @@name,
		'method_name'      => 'add_item',
		'http_method'      => 'POST',
		'path'             => '/v1/wishlists/{wishListId}/items',
		'params'           => ['wishListId', ],
		'args'             => args
	})

end

.add_item_for_me(*args) ⇒ Object



29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/models/wish_list.rb', line 29

def self.add_item_for_me(*args)

	Clayful.call_api({
		'model_name'       => @@name,
		'method_name'      => 'add_item_for_me',
		'http_method'      => 'POST',
		'path'             => '/v1/me/wishlists/{wishListId}/items',
		'params'           => ['wishListId', ],
		'args'             => args
	})

end

.count(*args) ⇒ Object



42
43
44
45
46
47
48
49
50
51
52
53
# File 'lib/models/wish_list.rb', line 42

def self.count(*args)

	Clayful.call_api({
		'model_name'       => @@name,
		'method_name'      => 'count',
		'http_method'      => 'GET',
		'path'             => '/v1/wishlists/count',
		'params'           => [],
		'args'             => args
	})

end

.count_for_me(*args) ⇒ Object



55
56
57
58
59
60
61
62
63
64
65
66
# File 'lib/models/wish_list.rb', line 55

def self.count_for_me(*args)

	Clayful.call_api({
		'model_name'       => @@name,
		'method_name'      => 'count_for_me',
		'http_method'      => 'GET',
		'path'             => '/v1/me/wishlists/count',
		'params'           => [],
		'args'             => args
	})

end

.count_products(*args) ⇒ Object



68
69
70
71
72
73
74
75
76
77
78
79
# File 'lib/models/wish_list.rb', line 68

def self.count_products(*args)

	Clayful.call_api({
		'model_name'       => @@name,
		'method_name'      => 'count_products',
		'http_method'      => 'GET',
		'path'             => '/v1/wishlists/{wishListId}/products/count',
		'params'           => ['wishListId', ],
		'args'             => args
	})

end

.count_products_for_me(*args) ⇒ Object



81
82
83
84
85
86
87
88
89
90
91
92
# File 'lib/models/wish_list.rb', line 81

def self.count_products_for_me(*args)

	Clayful.call_api({
		'model_name'       => @@name,
		'method_name'      => 'count_products_for_me',
		'http_method'      => 'GET',
		'path'             => '/v1/me/wishlists/{wishListId}/products/count',
		'params'           => ['wishListId', ],
		'args'             => args
	})

end

.create(*args) ⇒ Object



94
95
96
97
98
99
100
101
102
103
104
105
# File 'lib/models/wish_list.rb', line 94

def self.create(*args)

	Clayful.call_api({
		'model_name'       => @@name,
		'method_name'      => 'create',
		'http_method'      => 'POST',
		'path'             => '/v1/wishlists',
		'params'           => [],
		'args'             => args
	})

end

.create_for_me(*args) ⇒ Object



107
108
109
110
111
112
113
114
115
116
117
118
# File 'lib/models/wish_list.rb', line 107

def self.create_for_me(*args)

	Clayful.call_api({
		'model_name'       => @@name,
		'method_name'      => 'create_for_me',
		'http_method'      => 'POST',
		'path'             => '/v1/me/wishlists',
		'params'           => [],
		'args'             => args
	})

end

.delete(*args) ⇒ Object



120
121
122
123
124
125
126
127
128
129
130
131
# File 'lib/models/wish_list.rb', line 120

def self.delete(*args)

	Clayful.call_api({
		'model_name'       => @@name,
		'method_name'      => 'delete',
		'http_method'      => 'DELETE',
		'path'             => '/v1/wishlists/{wishListId}',
		'params'           => ['wishListId', ],
		'args'             => args
	})

end

.delete_for_me(*args) ⇒ Object



133
134
135
136
137
138
139
140
141
142
143
144
# File 'lib/models/wish_list.rb', line 133

def self.delete_for_me(*args)

	Clayful.call_api({
		'model_name'       => @@name,
		'method_name'      => 'delete_for_me',
		'http_method'      => 'DELETE',
		'path'             => '/v1/me/wishlists/{wishListId}',
		'params'           => ['wishListId', ],
		'args'             => args
	})

end

.delete_item(*args) ⇒ Object



146
147
148
149
150
151
152
153
154
155
156
157
# File 'lib/models/wish_list.rb', line 146

def self.delete_item(*args)

	Clayful.call_api({
		'model_name'       => @@name,
		'method_name'      => 'delete_item',
		'http_method'      => 'DELETE',
		'path'             => '/v1/wishlists/{wishListId}/items/{productId}',
		'params'           => ['wishListId', 'productId', ],
		'args'             => args
	})

end

.delete_item_for_me(*args) ⇒ Object



159
160
161
162
163
164
165
166
167
168
169
170
# File 'lib/models/wish_list.rb', line 159

def self.delete_item_for_me(*args)

	Clayful.call_api({
		'model_name'       => @@name,
		'method_name'      => 'delete_item_for_me',
		'http_method'      => 'DELETE',
		'path'             => '/v1/me/wishlists/{wishListId}/items/{productId}',
		'params'           => ['wishListId', 'productId', ],
		'args'             => args
	})

end

.delete_metafield(*args) ⇒ Object



172
173
174
175
176
177
178
179
180
181
182
183
# File 'lib/models/wish_list.rb', line 172

def self.delete_metafield(*args)

	Clayful.call_api({
		'model_name'       => @@name,
		'method_name'      => 'delete_metafield',
		'http_method'      => 'DELETE',
		'path'             => '/v1/wishlists/{wishListId}/meta/{field}',
		'params'           => ['wishListId', 'field', ],
		'args'             => args
	})

end

.empty(*args) ⇒ Object



185
186
187
188
189
190
191
192
193
194
195
196
# File 'lib/models/wish_list.rb', line 185

def self.empty(*args)

	Clayful.call_api({
		'model_name'       => @@name,
		'method_name'      => 'empty',
		'http_method'      => 'DELETE',
		'path'             => '/v1/wishlists/{wishListId}/items',
		'params'           => ['wishListId', ],
		'args'             => args
	})

end

.empty_for_me(*args) ⇒ Object



198
199
200
201
202
203
204
205
206
207
208
209
# File 'lib/models/wish_list.rb', line 198

def self.empty_for_me(*args)

	Clayful.call_api({
		'model_name'       => @@name,
		'method_name'      => 'empty_for_me',
		'http_method'      => 'DELETE',
		'path'             => '/v1/me/wishlists/{wishListId}/items',
		'params'           => ['wishListId', ],
		'args'             => args
	})

end

.get(*args) ⇒ Object



211
212
213
214
215
216
217
218
219
220
221
222
# File 'lib/models/wish_list.rb', line 211

def self.get(*args)

	Clayful.call_api({
		'model_name'       => @@name,
		'method_name'      => 'get',
		'http_method'      => 'GET',
		'path'             => '/v1/wishlists/{wishListId}',
		'params'           => ['wishListId', ],
		'args'             => args
	})

end

.get_for_me(*args) ⇒ Object



224
225
226
227
228
229
230
231
232
233
234
235
# File 'lib/models/wish_list.rb', line 224

def self.get_for_me(*args)

	Clayful.call_api({
		'model_name'       => @@name,
		'method_name'      => 'get_for_me',
		'http_method'      => 'GET',
		'path'             => '/v1/me/wishlists/{wishListId}',
		'params'           => ['wishListId', ],
		'args'             => args
	})

end

.increase_metafield(*args) ⇒ Object



237
238
239
240
241
242
243
244
245
246
247
248
# File 'lib/models/wish_list.rb', line 237

def self.increase_metafield(*args)

	Clayful.call_api({
		'model_name'       => @@name,
		'method_name'      => 'increase_metafield',
		'http_method'      => 'POST',
		'path'             => '/v1/wishlists/{wishListId}/meta/{field}/inc',
		'params'           => ['wishListId', 'field', ],
		'args'             => args
	})

end

.list(*args) ⇒ Object



250
251
252
253
254
255
256
257
258
259
260
261
# File 'lib/models/wish_list.rb', line 250

def self.list(*args)

	Clayful.call_api({
		'model_name'       => @@name,
		'method_name'      => 'list',
		'http_method'      => 'GET',
		'path'             => '/v1/wishlists',
		'params'           => [],
		'args'             => args
	})

end

.list_for_me(*args) ⇒ Object



263
264
265
266
267
268
269
270
271
272
273
274
# File 'lib/models/wish_list.rb', line 263

def self.list_for_me(*args)

	Clayful.call_api({
		'model_name'       => @@name,
		'method_name'      => 'list_for_me',
		'http_method'      => 'GET',
		'path'             => '/v1/me/wishlists',
		'params'           => [],
		'args'             => args
	})

end

.list_products(*args) ⇒ Object



276
277
278
279
280
281
282
283
284
285
286
287
# File 'lib/models/wish_list.rb', line 276

def self.list_products(*args)

	Clayful.call_api({
		'model_name'       => @@name,
		'method_name'      => 'list_products',
		'http_method'      => 'GET',
		'path'             => '/v1/wishlists/{wishListId}/products',
		'params'           => ['wishListId', ],
		'args'             => args
	})

end

.list_products_for_me(*args) ⇒ Object



289
290
291
292
293
294
295
296
297
298
299
300
# File 'lib/models/wish_list.rb', line 289

def self.list_products_for_me(*args)

	Clayful.call_api({
		'model_name'       => @@name,
		'method_name'      => 'list_products_for_me',
		'http_method'      => 'GET',
		'path'             => '/v1/me/wishlists/{wishListId}/products',
		'params'           => ['wishListId', ],
		'args'             => args
	})

end

.nameObject



8
9
10
# File 'lib/models/wish_list.rb', line 8

def self.name
	@@name
end

.pathObject



12
13
14
# File 'lib/models/wish_list.rb', line 12

def self.path
	@@path
end

.pull_from_metafield(*args) ⇒ Object



302
303
304
305
306
307
308
309
310
311
312
313
# File 'lib/models/wish_list.rb', line 302

def self.pull_from_metafield(*args)

	Clayful.call_api({
		'model_name'       => @@name,
		'method_name'      => 'pull_from_metafield',
		'http_method'      => 'POST',
		'path'             => '/v1/wishlists/{wishListId}/meta/{field}/pull',
		'params'           => ['wishListId', 'field', ],
		'args'             => args
	})

end

.push_to_metafield(*args) ⇒ Object



315
316
317
318
319
320
321
322
323
324
325
326
# File 'lib/models/wish_list.rb', line 315

def self.push_to_metafield(*args)

	Clayful.call_api({
		'model_name'       => @@name,
		'method_name'      => 'push_to_metafield',
		'http_method'      => 'POST',
		'path'             => '/v1/wishlists/{wishListId}/meta/{field}/push',
		'params'           => ['wishListId', 'field', ],
		'args'             => args
	})

end

.update(*args) ⇒ Object



328
329
330
331
332
333
334
335
336
337
338
339
# File 'lib/models/wish_list.rb', line 328

def self.update(*args)

	Clayful.call_api({
		'model_name'       => @@name,
		'method_name'      => 'update',
		'http_method'      => 'PUT',
		'path'             => '/v1/wishlists/{wishListId}',
		'params'           => ['wishListId', ],
		'args'             => args
	})

end

.update_for_me(*args) ⇒ Object



341
342
343
344
345
346
347
348
349
350
351
352
# File 'lib/models/wish_list.rb', line 341

def self.update_for_me(*args)

	Clayful.call_api({
		'model_name'       => @@name,
		'method_name'      => 'update_for_me',
		'http_method'      => 'PUT',
		'path'             => '/v1/me/wishlists/{wishListId}',
		'params'           => ['wishListId', ],
		'args'             => args
	})

end