summaryrefslogtreecommitdiffstats
path: root/lib/file_handler.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/file_handler.js')
-rw-r--r--lib/file_handler.js20
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];