Skip to content

Commit

Permalink
Merge pull request #371 from ryanseys/rs-bucket-metadata
Browse files Browse the repository at this point in the history
Clarify bucket metadata example
  • Loading branch information
stephenplusplus committed Feb 2, 2015
2 parents 5284a39 + 5826a2f commit cdd4138
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/storage/bucket.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,11 +322,13 @@ Bucket.prototype.getMetadata = function(callback) {
* @param {function=} callback - The callback function.
*
* @example
* //-
* // Set website metadata field on the bucket.
* //-
* bucket.setMetadata({
* contentType: 'application/x-font-ttf',
* metadata: {
* my: 'custom',
* properties: 'go here'
* website: {
* mainPageSuffix: 'http://example.com',
* notFoundPage: 'http://example.com/404.html'
* }
* }, function(err, metadata) {});
*/
Expand Down

0 comments on commit cdd4138

Please sign in to comment.