class Clayful::Collection
Public Class Methods
count(*args)
click to toggle source
# File lib/models/collection.rb, line 16 def self.count(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'count', 'http_method' => 'GET', 'path' => '/v1/collections/count', 'params' => [], 'args' => args }) end
create(*args)
click to toggle source
# File lib/models/collection.rb, line 29 def self.create(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'create', 'http_method' => 'POST', 'path' => '/v1/collections', 'params' => [], 'args' => args }) end
delete(*args)
click to toggle source
# File lib/models/collection.rb, line 42 def self.delete(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'delete', 'http_method' => 'DELETE', 'path' => '/v1/collections/{collectionId}', 'params' => ['collectionId', ], 'args' => args }) end
delete_metafield(*args)
click to toggle source
# File lib/models/collection.rb, line 55 def self.delete_metafield(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'delete_metafield', 'http_method' => 'DELETE', 'path' => '/v1/collections/{collectionId}/meta/{field}', 'params' => ['collectionId', 'field', ], 'args' => args }) end
get(*args)
click to toggle source
# File lib/models/collection.rb, line 68 def self.get(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'get', 'http_method' => 'GET', 'path' => '/v1/collections/{collectionId}', 'params' => ['collectionId', ], 'args' => args }) end
increase_metafield(*args)
click to toggle source
# File lib/models/collection.rb, line 81 def self.increase_metafield(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'increase_metafield', 'http_method' => 'POST', 'path' => '/v1/collections/{collectionId}/meta/{field}/inc', 'params' => ['collectionId', 'field', ], 'args' => args }) end
list(*args)
click to toggle source
# File lib/models/collection.rb, line 94 def self.list(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'list', 'http_method' => 'GET', 'path' => '/v1/collections', 'params' => [], 'args' => args }) end
name()
click to toggle source
# File lib/models/collection.rb, line 8 def self.name @@name end
path()
click to toggle source
# File lib/models/collection.rb, line 12 def self.path @@path end
pull_from_metafield(*args)
click to toggle source
# File lib/models/collection.rb, line 107 def self.pull_from_metafield(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'pull_from_metafield', 'http_method' => 'POST', 'path' => '/v1/collections/{collectionId}/meta/{field}/pull', 'params' => ['collectionId', 'field', ], 'args' => args }) end
push_to_metafield(*args)
click to toggle source
# File lib/models/collection.rb, line 120 def self.push_to_metafield(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'push_to_metafield', 'http_method' => 'POST', 'path' => '/v1/collections/{collectionId}/meta/{field}/push', 'params' => ['collectionId', 'field', ], 'args' => args }) end
update(*args)
click to toggle source
# File lib/models/collection.rb, line 133 def self.update(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'update', 'http_method' => 'PUT', 'path' => '/v1/collections/{collectionId}', 'params' => ['collectionId', ], 'args' => args }) end