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