Class: Google::Apis::FirestoreV1::FieldReference

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

Overview

A reference to a field, such as max(messages.time) as max_time.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FieldReference

Returns a new instance of FieldReference.



682
683
684
# File 'generated/google/apis/firestore_v1/classes.rb', line 682

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

Instance Attribute Details

#field_pathString

Corresponds to the JSON property fieldPath

Returns:

  • (String)


680
681
682
# File 'generated/google/apis/firestore_v1/classes.rb', line 680

def field_path
  @field_path
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



687
688
689
# File 'generated/google/apis/firestore_v1/classes.rb', line 687

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