Class: CONTENT_ADAPTER_INTERFACE

CONTENT_ADAPTER_INTERFACE

new CONTENT_ADAPTER_INTERFACE(optionsopt)

Creates an interface

Parameters:
Name Type Attributes Default Description
options Object <optional>
{}

A set of properties defined by keys with their allowed types as values. Each property will be required by newly constructed classes from this interface

Source:

Methods

create(optionsopt) → {Object}

Constructs a new object with a prototype defined by the .adapter ensuring that instantiated class conforms to interface requirements

Parameters:
Name Type Attributes Default Description
options Object <optional>
{}

Values to be passed to class constructor (.adapter should be reserved for either customer class or string that matches key in ADAPTERS)

Properties
Name Type Description
adapter string | function

Required to specify type of adapter to be constructed or a class constructor that can be instantiated with new keyword

responder string | function

Alias for options.adapter. If options.responder is defined options.adapter will be ignored

Source:
Returns:

Returns an instantiated adapter class

Type
Object