Reference documentation and code samples for the Cloud Firestore API class Google::Cloud::Firestore::CommitResponse::WriteResult.
WriteResult
Represents the result of applying a write.
Inherits
Object
Example
require"google/cloud/firestore"
firestore=Google::Cloud::Firestore.newcommit_response=firestore.batchdo|b|# Set the data for NYCb.set("cities/NYC",{name:"NewYorkCity"})# Update the population for SFb.update("cities/SF",{population:1000000})# Delete LAb.delete("cities/LA")endputscommit_response.commit_timecommit_response.write_results.eachdo|write_result|putswrite_result.update_timeend
Methods
#update_time
defupdate_time()->Time
The last update time of the document after applying the write. Not
set after a +delete+.
If the write did not actually change the document, this will be
the previous update_time.
Returns
(Time) — The last update time.
#update_time=
defupdate_time=(value)->Time
The last update time of the document after applying the write. Not
set after a +delete+.
If the write did not actually change the document, this will be
the previous update_time.