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 |
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
|
Returns:
Returns an instantiated adapter class
- Type
- Object