Class: Clayful::Image
- Inherits:
-
Object
- Object
- Clayful::Image
- Defined in:
- lib/models/image.rb
Constant Summary collapse
- @@name =
'Image'
- @@path =
'images'
Class Method Summary collapse
- .count(*args) ⇒ Object
- .count_for_me(*args) ⇒ Object
- .create(*args) ⇒ Object
- .create_as_customer(*args) ⇒ Object
- .create_for_me(*args) ⇒ Object
- .delete(*args) ⇒ Object
- .delete_as_customer(*args) ⇒ Object
- .delete_for_me(*args) ⇒ Object
- .get(*args) ⇒ Object
- .get_for_me(*args) ⇒ Object
- .list(*args) ⇒ Object
- .list_for_me(*args) ⇒ Object
- .name ⇒ Object
- .path ⇒ Object
- .update(*args) ⇒ Object
- .update_as_customer(*args) ⇒ Object
- .update_for_me(*args) ⇒ Object
Class Method Details
.count(*args) ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/models/image.rb', line 16 def self.count(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'count', 'http_method' => 'GET', 'path' => '/v1/images/count', 'params' => [], 'args' => args }) end |
.count_for_me(*args) ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/models/image.rb', line 29 def self.count_for_me(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'count_for_me', 'http_method' => 'GET', 'path' => '/v1/me/images/count', 'params' => [], 'args' => args }) end |
.create(*args) ⇒ Object
42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/models/image.rb', line 42 def self.create(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'create', 'http_method' => 'POST', 'path' => '/v1/images', 'params' => [], 'uses_form_data' => true, 'args' => args }) end |
.create_as_customer(*args) ⇒ Object
56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/models/image.rb', line 56 def self.create_as_customer(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'create_as_customer', 'http_method' => 'POST', 'path' => '/v1/customers/{customerId}/images', 'params' => ['customerId', ], 'uses_form_data' => true, 'args' => args }) end |
.create_for_me(*args) ⇒ Object
70 71 72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/models/image.rb', line 70 def self.create_for_me(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'create_for_me', 'http_method' => 'POST', 'path' => '/v1/me/images', 'params' => [], 'uses_form_data' => true, 'args' => args }) end |
.delete(*args) ⇒ Object
84 85 86 87 88 89 90 91 92 93 94 95 |
# File 'lib/models/image.rb', line 84 def self.delete(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'delete', 'http_method' => 'DELETE', 'path' => '/v1/images/{imageId}', 'params' => ['imageId', ], 'args' => args }) end |
.delete_as_customer(*args) ⇒ Object
97 98 99 100 101 102 103 104 105 106 107 108 |
# File 'lib/models/image.rb', line 97 def self.delete_as_customer(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'delete_as_customer', 'http_method' => 'DELETE', 'path' => '/v1/customers/{customerId}/images/{imageId}', 'params' => ['customerId', 'imageId', ], 'args' => args }) end |
.delete_for_me(*args) ⇒ Object
110 111 112 113 114 115 116 117 118 119 120 121 |
# File 'lib/models/image.rb', line 110 def self.delete_for_me(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'delete_for_me', 'http_method' => 'DELETE', 'path' => '/v1/me/images/{imageId}', 'params' => ['imageId', ], 'args' => args }) end |
.get(*args) ⇒ Object
123 124 125 126 127 128 129 130 131 132 133 134 |
# File 'lib/models/image.rb', line 123 def self.get(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'get', 'http_method' => 'GET', 'path' => '/v1/images/{imageId}', 'params' => ['imageId', ], 'args' => args }) end |
.get_for_me(*args) ⇒ Object
136 137 138 139 140 141 142 143 144 145 146 147 |
# File 'lib/models/image.rb', line 136 def self.get_for_me(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'get_for_me', 'http_method' => 'GET', 'path' => '/v1/me/images/{imageId}', 'params' => ['imageId', ], 'args' => args }) end |
.list(*args) ⇒ Object
149 150 151 152 153 154 155 156 157 158 159 160 |
# File 'lib/models/image.rb', line 149 def self.list(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'list', 'http_method' => 'GET', 'path' => '/v1/images', 'params' => [], 'args' => args }) end |
.list_for_me(*args) ⇒ Object
162 163 164 165 166 167 168 169 170 171 172 173 |
# File 'lib/models/image.rb', line 162 def self.list_for_me(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'list_for_me', 'http_method' => 'GET', 'path' => '/v1/me/images', 'params' => [], 'args' => args }) end |
.name ⇒ Object
8 9 10 |
# File 'lib/models/image.rb', line 8 def self.name @@name end |
.path ⇒ Object
12 13 14 |
# File 'lib/models/image.rb', line 12 def self.path @@path end |
.update(*args) ⇒ Object
175 176 177 178 179 180 181 182 183 184 185 186 187 |
# File 'lib/models/image.rb', line 175 def self.update(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'update', 'http_method' => 'PUT', 'path' => '/v1/images/{imageId}', 'params' => ['imageId', ], 'uses_form_data' => true, 'args' => args }) end |
.update_as_customer(*args) ⇒ Object
189 190 191 192 193 194 195 196 197 198 199 200 201 |
# File 'lib/models/image.rb', line 189 def self.update_as_customer(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'update_as_customer', 'http_method' => 'PUT', 'path' => '/v1/customers/{customerId}/images/{imageId}', 'params' => ['customerId', 'imageId', ], 'uses_form_data' => true, 'args' => args }) end |
.update_for_me(*args) ⇒ Object
203 204 205 206 207 208 209 210 211 212 213 214 215 |
# File 'lib/models/image.rb', line 203 def self.update_for_me(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'update_for_me', 'http_method' => 'PUT', 'path' => '/v1/me/images/{imageId}', 'params' => ['imageId', ], 'uses_form_data' => true, 'args' => args }) end |