id and time attributes

Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
Fabio José 2018-11-14 22:03:01 -02:00
parent 1b3922c770
commit 903891e3d9
1 changed files with 10 additions and 0 deletions

View File

@ -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
*/