import RcModule from '../../lib/rc-module';
import SymbolMap from 'data-types/symbol-map';

const symbols = new SymbolMap([
  'reducer',
  'data',
]);

export default class Brand extends RcModule {
  constructor(options) {
    super();
    const {
      id,
      name,
    } = options;
    this[symbols.data] = {
      id,
      name,
    };
    this[symbols.initialState] = () => this[symbols.data];
  }
  get reducer() {
    return this[symbols.reducer];
  }
  get id() {
    return this.state.id;
  }
  get name() {
    return this.state.name;
  }
}


import RcModule from '../../lib/rc-module';
import SymbolMap from 'data-types/symbol-map';

const symbols = new SymbolMap([
  'reducer',
  'data',
]);

export default class Brand extends RcModule {
  constructor(options) {
    super();
    const {
      id,
      name,
    } = options;
    this[symbols.data] = {
      id,
      name,
    };
    this[symbols.reducer] = () => this[symbols.data];
  }
  get reducer() {
    return this[symbols.reducer];
  }
  get id() {
    return this.state.id;
  }
  get name() {
    return this.state.name;
  }
}


fix bug where brand reducer is missing (#73)