Source: layers/simple-object.js

'use strict';

const AbstractLayer = require('./abstract');

/**
 * Simple layer to store config right out-of-code
 * @extends AbstractLayer
 */
class SimpleObjectLayer extends AbstractLayer {
  /**
   * @inheritDoc
   */
  async init() {
    this.markInitialized();
    this.data = this.options.data || {};
  }
}

module.exports = SimpleObjectLayer;