class

Crystalforce::Collection

Inherits Iterator / Enumerable / Enumerable / Reference / Object

Lazy-paginating collection for query results. Implements Enumerable and Iterator for automatic pagination.

Constructors

new(records : Array(JSON::Any), total_size : Int64, done : Bool, next_records_url : String | Nil, client : Client | ToolingClient)
Source

Instance methods

current_page
Source
done
Source
each

Enumerable - iterate all records across all pages

Source
has_next_page?
Source
next

Iterator

Source
next_page
Source
rewind
Source
size

Returns the number of elements in the collection.

[1, 2, 3, 4].size # => 4
Source
total_size
Source