class Google::Apis::FirestoreV1::Order

An order on a field.

Attributes

direction[RW]

The direction to order by. Defaults to `ASCENDING`. Corresponds to the JSON property `direction` @return [String]

field[RW]

A reference to a field, such as `max(messages.time) as max_time`. Corresponds to the JSON property `field` @return [Google::Apis::FirestoreV1::FieldReference]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/firestore_v1/classes.rb, line 1781
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/firestore_v1/classes.rb, line 1786
def update!(**args)
  @direction = args[:direction] if args.key?(:direction)
  @field = args[:field] if args.key?(:field)
end