Class: Google::Apis::FirestoreV1beta1::Cursor

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 position in a query result set.

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) ⇒ Cursor

Returns a new instance of Cursor.



308
309
310
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 308

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

Instance Attribute Details

#beforeBoolean Also known as: before?

If the position is just before or just after the given values, relative to the sort order defined by the query. Corresponds to the JSON property before

Returns:

  • (Boolean)


298
299
300
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 298

def before
  @before
end

#valuesArray<Google::Apis::FirestoreV1beta1::Value>

The values that represent a position, in the order they appear in the order by clause of a query. Can contain fewer values than specified in the order by clause. Corresponds to the JSON property values



306
307
308
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 306

def values
  @values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



313
314
315
316
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 313

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