Method: Gcloud#storage

Defined in:
lib/gcloud.rb

#storageObject

Creates a new object for connecting to the Storage service. Each call creates a new connection.

Returns

Gcloud::Storage::Project

Example

require "gcloud"

gcloud  = Gcloud.new
storage = gcloud.storage
bucket = storage.bucket "my-bucket"
file = bucket.file "path/to/my-file.ext"


113
114
115
116
# File 'lib/gcloud.rb', line 113

def storage
  require "gcloud/storage"
  Gcloud.storage @project, @keyfile
end