new Attribute(agent, attrId)
Create a new Attribute identified as attrId.
Parameters:
| Name | Type | Description |
|---|---|---|
agent |
ESIAgent | The ESI agent used to make web requests |
attrId |
Number | The attribute id used in all requests |
Methods
-
info()
-
Get information on a dogma attribute. This route expires daily at 11:05.
This makes an HTTP GET request to
/dogma/attributes/{attribute_id}/. The route version isv1.On success, this resolves to information about a dogma attribute. An example result is:
{ "attribute_id": 20, "default_value": 1, "description": "Factor by which topspeed increases.", "display_name": "Maximum Velocity Bonus", "high_is_good": true, "icon_id": 1389, "name": "speedFactor", "published": true, "stackable": false, "unit_id": 124 }Returns:
A Promise that resolves to the parsed JSON of the response.
- Type
- Promise.<Object>