Class: Google::Apis::FirestoreV1::FieldReference
- Inherits:
-
Object
- Object
- Google::Apis::FirestoreV1::FieldReference
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/firestore_v1/classes.rb,
lib/google/apis/firestore_v1/representations.rb,
lib/google/apis/firestore_v1/representations.rb
Overview
A reference to a field in a document, ex: stats.operations.
Instance Attribute Summary collapse
-
#field_path ⇒ String
The relative path of the document being referenced.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FieldReference
constructor
A new instance of FieldReference.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ FieldReference
Returns a new instance of FieldReference.
762 763 764 |
# File 'lib/google/apis/firestore_v1/classes.rb', line 762 def initialize(**args) update!(**args) end |
Instance Attribute Details
#field_path ⇒ String
The relative path of the document being referenced. Requires: * Conform to
document field name limitations.
Corresponds to the JSON property fieldPath
760 761 762 |
# File 'lib/google/apis/firestore_v1/classes.rb', line 760 def field_path @field_path end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
767 768 769 |
# File 'lib/google/apis/firestore_v1/classes.rb', line 767 def update!(**args) @field_path = args[:field_path] if args.key?(:field_path) end |