diff --git a/lib/cloudevent.js b/lib/cloudevent.js index ceec705..ebf53b3 100644 --- a/lib/cloudevent.js +++ b/lib/cloudevent.js @@ -22,51 +22,51 @@ Cloudevent.prototype.format = function(){ // Then, format return this.formatter.format(this.spec.payload); -} +}; Cloudevent.prototype.toString = function(){ return this.formatter.toString(this.spec.payload); -} +}; Cloudevent.prototype.type = function(type){ this.spec.type(type); return this; -} +}; Cloudevent.prototype.source = function(_source){ this.spec.source(_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; -} +}; 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