Class: Google::Cloud::Storage::Bucket::Updater
- Inherits:
-
Google::Cloud::Storage::Bucket
- Object
- Google::Cloud::Storage::Bucket
- Google::Cloud::Storage::Bucket::Updater
- Defined in:
- lib/google/cloud/storage/bucket.rb
Overview
Yielded to a block to accumulate changes for a patch request.
Instance Attribute Summary collapse
-
#updates ⇒ Object
readonly
Returns the value of attribute updates.
Instance Method Summary collapse
- #cors {|@cors_builder| ... } ⇒ Object
-
#initialize(gapi) ⇒ Updater
constructor
Create an Updater object.
Methods inherited from Google::Cloud::Storage::Bucket
#acl, #api_url, #create_file, #created_at, #default_acl, #delete, #file, #files, #id, #kind, #location, #logging_bucket, #logging_bucket=, #logging_prefix, #logging_prefix=, #name, #post_object, #reload!, #signed_url, #storage_class, #update, #versioning=, #versioning?, #website_404, #website_404=, #website_main, #website_main=
Constructor Details
#initialize(gapi) ⇒ Updater
Create an Updater object.
945 946 947 948 949 |
# File 'lib/google/cloud/storage/bucket.rb', line 945 def initialize gapi @updates = [] @gapi = gapi @cors_builder = nil end |
Instance Attribute Details
#updates ⇒ Object (readonly)
Returns the value of attribute updates.
942 943 944 |
# File 'lib/google/cloud/storage/bucket.rb', line 942 def updates @updates end |