Skip to content

Commit

Permalink
Implement SpreadsheetWorksheet.del()
Browse files Browse the repository at this point in the history
  • Loading branch information
kad3nce committed Sep 17, 2015
1 parent 72481fc commit 95629e1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ var GooogleSpreadsheet = function( ss_key, auth_id, options ){
var SpreadsheetWorksheet = function( spreadsheet, data ){
var self = this;

self.url = data.id;
self.id = data.id.substring( data.id.lastIndexOf("/") + 1 );
self.title = data.title["_"];
self.rowCount = data['gs:rowCount'];
Expand All @@ -269,6 +270,9 @@ var SpreadsheetWorksheet = function( spreadsheet, data ){
this.addRow = function( data, cb ){
spreadsheet.addRow( self.id, data, cb );
}
this.del = function ( cb ){
spreadsheet.makeFeedRequest( self.url, 'DELETE', null, cb );
}
}

var SpreadsheetRow = function( spreadsheet, data, xml ){
Expand Down

0 comments on commit 95629e1

Please sign in to comment.