Class: Clayful::TaxCategory
- Inherits:
-
Object
- Object
- Clayful::TaxCategory
- Defined in:
- lib/models/tax_category.rb
Constant Summary collapse
- @@name =
'TaxCategory'
- @@path =
'taxes/categories'
Class Method Summary collapse
Class Method Details
.count(*args) ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/models/tax_category.rb', line 16 def self.count(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'count', 'http_method' => 'GET', 'path' => '/v1/taxes/categories/count', 'params' => [], 'args' => args }) end |
.get(*args) ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/models/tax_category.rb', line 29 def self.get(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'get', 'http_method' => 'GET', 'path' => '/v1/taxes/categories/{taxCategoryId}', 'params' => ['taxCategoryId', ], 'args' => args }) end |
.list(*args) ⇒ Object
42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/models/tax_category.rb', line 42 def self.list(*args) Clayful.call_api({ 'model_name' => @@name, 'method_name' => 'list', 'http_method' => 'GET', 'path' => '/v1/taxes/categories', 'params' => [], 'args' => args }) end |
.name ⇒ Object
8 9 10 |
# File 'lib/models/tax_category.rb', line 8 def self.name @@name end |
.path ⇒ Object
12 13 14 |
# File 'lib/models/tax_category.rb', line 12 def self.path @@path end |