Class: Structures

Structures

An api adapter over the end points handling structures via functions in the universe and search ESI endpoints. You should not usually instantiate this directly as its constructor requires an internal api instance.

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


new Structures(character)

Create a new Structures function tied to the given character.

Parameters:
Name Type Description
character Character

Members


A Search module instance configured to search over the 'structure' type and linked to the character.

Type:

Methods


get(id)

Create a new Structure end point targeting the particular structure by id.

Parameters:
Name Type Description
id Number

The structure id

Returns:
Type
Structure