Class: Moon

Moon

An api adapter that provides functions for accessing various details for a moon specified by id, via functions in the universe ESI endpoints. You should not usually instantiate this directly as its constructor requires an internal api instance.


new Moon(agent, moonId)

Create a new Moon for the given agent provider and specific moonId.

Parameters:
Name Type Description
agent ESIAgent

The ESI agent used to generate web requests

moonId Number

The moon id that is used for all requests

Methods


info()

Get information on a moon. This route expires daily at 11:05.

This makes an HTTP GET request to /universe/moons/{moon_id}/. The route version is v1.

On success, this resolves to information about a moon. An example result is:

{
  "moon_id": 40000042,
  "name": "Akpivem I - Moon 1",
  "position": {
    "x": 58605102008,
    "y": -3066616285,
    "z": -55193617920
  },
  "system_id": 30000003
}
Returns:

A Promise that resolves to the parsed JSON of the response.

Type
Promise.<Object>