diff --git a/lib/cloudevent.js b/lib/cloudevent.js index 1c7e573..e8acf5f 100644 --- a/lib/cloudevent.js +++ b/lib/cloudevent.js @@ -38,6 +38,16 @@ Cloudevent.prototype.source = function(_source){ return this; } +Cloudevent.prototype.id = function(_id){ + this.spec.id(_id); + return this; +} + +Cloudevent.prototype.time = function(_time){ + this.spec.time(_time); + return this; +} + /* * Export the specs */