Class: Google::Apis::FirestoreV1beta1::FieldReference

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/firestore_v1beta1/classes.rb,
lib/google/apis/firestore_v1beta1/representations.rb,
lib/google/apis/firestore_v1beta1/representations.rb

Overview

A reference to a field in a document, ex: stats.operations.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FieldReference

Returns a new instance of FieldReference.



914
915
916
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 914

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#field_pathString

A reference to a field in a document. Requires: * MUST be a dot-delimited (.) string of segments, where each segment conforms to document field name limitations. Corresponds to the JSON property fieldPath

Returns:

  • (String)


912
913
914
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 912

def field_path
  @field_path
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



919
920
921
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 919

def update!(**args)
  @field_path = args[:field_path] if args.key?(:field_path)
end