Class: Stargates

Stargates

An api adapter that provides functions for accessing stargate information via the universe ESI end points. You should not usually instantiate this directly as its constructor requires an internal api instance.

This is a function class so instances of Stargates are functions and can be invoked directly, besides accessing its members. Its default function action is equivalent to get.


new Stargates(agent)

Create a new Stargates instance using the given api.

Parameters:
Name Type Description
agent ESIAgent

The ESI agent

Methods


get(id)

Create a new Stargate end point targeting the particular stargate by id.

Parameters:
Name Type Description
id Number

The stargate id

Returns:
Type
Stargate