Class: Book

classes~Book(id, title, publicationDate, createdAt, updatedAt, subtitle)

Class representing a Book.

Constructor

new Book(id, title, publicationDate, createdAt, updatedAt, subtitle)

Create a book.
Parameters:
Name Type Default Description
id number
title string
publicationDate Date
createdAt Date
updatedAt Date
subtitle string null
Source:

Methods

(async) getAuthors(forceRefresh) → {Promise:.<Array:.<object:>>}

Get the authors of the book.
Parameters:
Name Type Default Description
forceRefresh bool false
Source:
Returns:
Type
Promise:.<Array:.<object:>>

(async) getEditions(forceRefresh) → {Promise:.<Array:.<object:>>}

Get the editions of the book.
Parameters:
Name Type Default Description
forceRefresh bool false
Source:
Returns:
Type
Promise:.<Array:.<object:>>

(async) refresh()

Refreshes data from the database that has been pulled at least once before in this instance.
Source: