new Attributes(agent)
Create a new Attributes function using the given agent.
Parameters:
| Name | Type | Description |
|---|---|---|
agent |
ESIAgent | The ESI agent |
Methods
-
all()
-
Get a list of dogma attribute ids. This route expires daily at 11:05.
This makes an HTTP GET request to
/dogma/attributes/. The route version isv1.On success, this resolves to a list of dogma attribute ids.
Returns:
A Promise that resolves to the parsed JSON of the response.
- Type
- Promise.<Array.<Number>>
-
get(id)
-
Create a new Attribute end point targeting the particular attribute by
id.Parameters:
Name Type Description idNumber The attribute id
Returns:
- Type
- Attribute