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

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ FieldReference

Returns a new instance of FieldReference



649
650
651
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 649

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

Instance Attribute Details

#field_pathString

Corresponds to the JSON property fieldPath

Returns:

  • (String)


647
648
649
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 647

def field_path
  @field_path
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



654
655
656
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 654

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