notonthehighstreet/node-lambda-events

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

Summary

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

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

  get key() {
    return this.record.key;
  }

  get value() {
    return this.record.value;
  }
}

export default Record;