# Object

Adding an object decorator

```javascript
@object({
  name: 'My Object',
  weight: 1
})
class MyObject {

  [ ... ]

}
```

## @object(options)

*Arguments*

* `options` { Object } Options object
  * `name` { String } The Cortex objectName (eg. account, c\_foo)
  * `weight` { Number = *0* } The weight&#x20;

```javascript
@object({
  name: 'My Object',
  weight: 1
})
class MyObject {

  [ ... ]

}
```
