Class: Google::Cloud::Storage::File::Updater

Inherits:
Google::Cloud::Storage::File show all
Defined in:
lib/google/cloud/storage/file.rb

Overview

Yielded to a block to accumulate changes for a patch request.

Instance Attribute Summary

Attributes inherited from Google::Cloud::Storage::File

#user_project

Instance Method Summary collapse

Methods inherited from Google::Cloud::Storage::File

#acl, #api_url, #bucket, #cache_control, #cache_control=, #content_disposition, #content_disposition=, #content_encoding, #content_encoding=, #content_language, #content_language=, #content_type, #content_type=, #copy, #crc32c, #created_at, #delete, #download, #encryption_key_sha256, #etag, #exists?, #generation, #generations, #id, #kind, #md5, #media_url, #metageneration, #name, #public_url, #reload!, #rotate, #signed_url, #size, #storage_class, #storage_class=, #update, #updated_at

Instance Method Details

#metadataObject

A hash of custom, user-provided web-safe keys and arbitrary string values that will returned with requests for the file as "x-goog-meta-" response headers.



1140
1141
1142
# File 'lib/google/cloud/storage/file.rb', line 1140

def 
  @metadata
end

#metadata=(metadata) ⇒ Object

Updates the hash of custom, user-provided web-safe keys and arbitrary string values that will returned with requests for the file as "x-goog-meta-" response headers.



1148
1149
1150
1151
1152
# File 'lib/google/cloud/storage/file.rb', line 1148

def metadata= 
  @metadata = 
  @gapi. = @metadata
  update_gapi! :metadata
end