Constructor
new Category(dataopt)
    Create a new instance of a category
    Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
data | 
            
            object | 
                
                    <optional> | 
            
            
            API response data.
                Properties
  | 
        
- Source:
 
Classes
Members
category_id :number
Type:
- number
 
- Source:
 
category_name :string
Type:
- string
 
- Source:
 
parent_id :number
Type:
- number
 
- Source:
 
Methods
(static) all() → {BricklinkRequest}
    Get a list of all colors
Usage:
```
var req = Category.all();
client.send(req).then(categories => console.log(categories));
```
- Source:
 
Returns:
    A request that resolves to an array of Category.
- Type
 - BricklinkRequest
 
(static) get(categoryId) → {BricklinkRequest}
    Method to get a specific category
Usage:
```
var req = Category.get(123);
client.send(req).then(category => console.log(category));
```
    Parameters:
| Name | Type | Description | 
|---|---|---|
categoryId | 
            
            number | Catalog item type | 
- Source:
 
Returns:
    A request that resolves to a Category instance.
- Type
 - BricklinkRequest