struct Meilisearch::Crystal::List(T)

Overview

A paginated Meilisearch collection.

Included Modules

Defined in:

meilisearch/crystal/resource.cr

Constructors

Instance Method Summary

Constructor methods inherited from struct Meilisearch::Crystal::Resource

new(pull : JSON::PullParser)
new(*, __pull_for_json_serializable pull : JSON::PullParser)
new

Macros inherited from struct Meilisearch::Crystal::Resource

define(name, &block) define, field(declaration) field, field!(declaration) field!, field?(declaration) field?

Constructor Detail

def self.new(pull : JSON::PullParser) #

A paginated Meilisearch collection.


[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]

Instance Method Detail

def each(& : T -> ) : Nil #
Description copied from module Enumerable(T)

Must yield this collection's elements to the block.


[View source]
def from : Int64 | Nil #

def limit : Int32 | Nil #

def next : Int64 | Nil #

def offset : Int32 | Nil #

def results : Array(T) #

def total : Int32 #