class

ModelContextProtocol::Server::Utilities::Pagination::Cursor

Inherits JSON::Serializable < Reference < Object

Constructors

from_string(cursor : String) : Cursor
Source
new(offset : Int32 = 0, total : Int32 = 0)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

offset
Source
offset=(offset : Int32)
Source
to_s

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.

Source
total
Source
total=(total : Int32)
Source