Class: Module

Module

This class encapsulates all the metadata relevant to an AMP module.
Source:
Returns:
Type
Module

Members

id

Gets the ID of this module. This will be null if this module does not yet exist in AMP.
Source:

location

Gets the location of this module.
Source:

name

Gets the name of this module.
Source:

Methods

getAMPUrl() → (nullable) {string}

Gets the URL to this module in AMP.
Source:
Returns:
the URL to this module in AMP; null if this module does not yet exist in AMP
Type
string