diff options
author | Kyle Partridge <partkyle@gmail.com> | 2012-02-10 16:18:45 -0800 |
---|---|---|
committer | Kyle Partridge <partkyle@gmail.com> | 2012-02-10 16:18:45 -0800 |
commit | 7e10ff96bacb47d0810b0ddf86f91bf1e2b8f73f (patch) | |
tree | c53f4e0ee600f6ab0ddb559b4c28e49de4e39a00 /lib/file_handler.js | |
parent | 731299e84476b1ba5109bc943694865612e7e630 (diff) | |
download | sendgrid-nodejs-7e10ff96bacb47d0810b0ddf86f91bf1e2b8f73f.zip sendgrid-nodejs-7e10ff96bacb47d0810b0ddf86f91bf1e2b8f73f.tar.gz sendgrid-nodejs-7e10ff96bacb47d0810b0ddf86f91bf1e2b8f73f.tar.bz2 |
fixed comments
Diffstat (limited to 'lib/file_handler.js')
-rw-r--r-- | lib/file_handler.js | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/file_handler.js b/lib/file_handler.js index 8855cd3..a89eba7 100644 --- a/lib/file_handler.js +++ b/lib/file_handler.js @@ -8,14 +8,14 @@ var fs = require('fs'); /** * Class to handle file attachments on an email. * - * @param {object} file_object Options to create a FileHandler - * @param {string} filename The name of the file to send. - * This will be guessed based on the file added - * if blank. - * @param {string} contentType The Content-Type of the file. - * @param {string} content The content to send in the file (usually a Buffer) - * @param {string} path The absolute path of the file on the filesystem - * @param {string} url The url to fetch a file from before sending + * @param {object} file_object Options to create a FileHandler + * @param {string} file_object.filename The name of the file to send. + * This will be guessed based on the file added + * if blank. + * @param {string} file_object.contentType The Content-Type of the file. + * @param {string} file_object.content The content to send in the file (usually a Buffer) + * @param {string} file_object.path The absolute path of the file on the filesystem + * @param {string} file_object.url The url to fetch a file from before sending */ function FileHandler(file_object) { this.filename = file_object.filename; @@ -114,8 +114,8 @@ FileHandler.handlers = { * Loads the content of the file based on the type * and calls a callback when finished. * - * @param {function} callback A function to call when - * the result is finished. + * @param {function} callback A function to call when + * the result is finished. */ FileHandler.prototype.loadContent = function(callback) { var handler = FileHandler.handlers[this.type]; |