ClanStore

ClanStore

A data store to store Clan models.

Constructor

new ClanStore()

Source:

Extends

Methods

fetch(name, cacheopt) → {Promise.<Clan>}

Source:

Obtains a Clan from the site, or the Clan cache if it's already available

Parameters:
Name Type Attributes Default Description
name string

Name of the clan

cache boolean <optional>
true

Whether to cache the new Clan object if it isn't already

Returns:
Type
Promise.<Clan>

resolve(clan) → (nullable) {Clan}

Source:
Overrides:

Resolves a ClanResolvable to a Clan object.

Parameters:
Name Type Description
clan string

The ClanResolvable to identify

Returns:
Type
Clan