diff --git a/lib/cloudevent.js b/lib/cloudevent.js index e8acf5f..072e866 100644 --- a/lib/cloudevent.js +++ b/lib/cloudevent.js @@ -48,6 +48,26 @@ Cloudevent.prototype.time = function(_time){ return this; } +Cloudevent.prototype.schemaurl = function(_schemaurl) { + this.spec.schemaurl(_schemaurl); + return this; +} + +Cloudevent.prototype.contenttype = function(_contenttype){ + this.spec.contenttype(_contenttype); + return this; +} + +Cloudevent.prototype.data = function(_data) { + this.spec.data(_data); + return this; +} + +Cloudevent.prototype.addExtension = function(key, value){ + this.spec.addExtension(key, value); + return this; +} + /* * Export the specs */