notonthehighstreet/node-lambda-events

View on GitHub
src/events/CognitoEvent/record.js

Summary

Maintainability
A
0 mins
Test Coverage
class Record {
  constructor(key, body) {
    this.body = body;
    this.key = key;
  }

  get type() {
    return this.body.op;
  }

  get newValue() {
    return this.body.newValue;
  }

  get oldValue() {
    return this.body.oldValue;
  }
}

export default Record;