frankthelen/rools

View on GitHub
src/Premise.js

Summary

Maintainability
A
0 mins
Test Coverage
class Premise {
  constructor({
    id, name, when,
  }) {
    this.id = id;
    this.name = name; // for logging only
    this.when = when;
    this.actions = [];
  }

  add(action) {
    this.actions.push(action);
  }
}

module.exports = Premise;