lib/google/cloud/firestore/document_snapshot.rb in google-cloud-firestore-1.4.4 vs lib/google/cloud/firestore/document_snapshot.rb in google-cloud-firestore-2.0.0
- old
+ new
@@ -60,11 +60,11 @@
# # When ready, stop the listen operation and close the stream.
# listener.stop
#
class DocumentSnapshot
##
- # @private The Google::Firestore::V1::Document object.
+ # @private The Google::Cloud::Firestore::V1::Document object.
attr_accessor :grpc
##
# The document identifier for the document snapshot.
#
@@ -343,11 +343,11 @@
end
end
##
# @private New DocumentSnapshot from a
- # Google::Firestore::V1::RunQueryResponse object.
+ # Google::Cloud::Firestore::V1::RunQueryResponse object.
def self.from_query_result result, client
ref = DocumentReference.from_path result.document.name, client
read_at = Convert.timestamp_to_time result.read_time
new.tap do |s|
@@ -357,11 +357,11 @@
end
end
##
# @private New DocumentSnapshot from a
- # Google::Firestore::V1::DocumentChange object.
+ # Google::Cloud::Firestore::V1::DocumentChange object.
def self.from_document document, client, read_at: nil
ref = DocumentReference.from_path document.name, client
new.tap do |s|
s.grpc = document
@@ -370,10 +370,10 @@
end
end
##
# @private New DocumentSnapshot from a
- # Google::Firestore::V1::BatchGetDocumentsResponse object.
+ # Google::Cloud::Firestore::V1::BatchGetDocumentsResponse object.
def self.from_batch_result result, client
ref = nil
grpc = nil
if result.result == :found
grpc = result.found