class Clayful::WishList
Public Class Methods
add_item(*args)
click to toggle source
# 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)
click to toggle source
# 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)
click to toggle source
# 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)
click to toggle source
# 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)
click to toggle source
# 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)
click to toggle source
# 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)
click to toggle source
# 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)
click to toggle source
# 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)
click to toggle source
# 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)
click to toggle source
# 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)
click to toggle source
# 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)
click to toggle source
# 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)
click to toggle source
# 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)
click to toggle source
# 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)
click to toggle source
# 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)
click to toggle source
# 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)
click to toggle source
# 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)
click to toggle source
# 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)
click to toggle source
# 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)
click to toggle source
# 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)
click to toggle source
# 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)
click to toggle source
# 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
name()
click to toggle source
# File lib/models/wish_list.rb, line 8 def self.name @@name end
path()
click to toggle source
# File lib/models/wish_list.rb, line 12 def self.path @@path end
pull_from_metafield(*args)
click to toggle source
# 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)
click to toggle source
# 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)
click to toggle source
# 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)
click to toggle source
# 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