Skip to content

Commit

Permalink
storage(docs): storage.bucket -> storage().bucket
Browse files Browse the repository at this point in the history
Update example from docs to show:

    storage().bucket('name');

instead of:

    storage.bucket('name');
  • Loading branch information
stephenplusplus committed Nov 3, 2014
1 parent 1c2b45a commit c10073f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/storage/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ var STORAGE_BASE_URL = 'https://www.googleapis.com/storage/v1/b';
* //-
*
* // Access `storage` through the `gcloud` module directly.
* var musicBucket = gcloud.storage.bucket('music');
* var musicBucket = gcloud.storage().bucket('music');
*
* //-
* // Elsewhere.
Expand All @@ -92,8 +92,8 @@ var STORAGE_BASE_URL = 'https://www.googleapis.com/storage/v1/b';
* projectId: 'my-project'
* });
*
* var albums = myProject.storage.bucket('albums');
* var photos = myProject.storage.bucket('photos');
* var albums = myProject.storage().bucket('albums');
* var photos = myProject.storage().bucket('photos');
*
*
* // Override default configuration details.
Expand Down Expand Up @@ -137,8 +137,8 @@ function Storage(config) {
* keyFilename: '/path/to/keyfile.json'
* });
*
* var albums = gcloud.storage.bucket('albums');
* var photos = gcloud.storage.bucket('photos');
* var albums = gcloud.storage().bucket('albums');
* var photos = gcloud.storage().bucket('photos');
*/
Storage.prototype.bucket = function(options) {
if (util.is(options, 'string')) {
Expand Down

0 comments on commit c10073f

Please sign in to comment.