Sha256: 1b144745eab2f35b9d72ff3b4c87f2fb338c1efddfda3ec83acdede2df50c39c

Contents?: true

Size: 1.36 KB

Versions: 11

Compression:

Stored size: 1.36 KB

Contents

module PgEventstore
  module Web
    module Paginator
      class BaseCollection
        # _@param_ `config_name`
        #
        # _@param_ `starting_id`
        #
        # _@param_ `per_page`
        #
        # _@param_ `order` — :asc or :desc
        #
        # _@param_ `options` — additional options to filter the collection
        def initialize: (
            Symbol config_name,
            starting_id: (String | Integer)?,
            per_page: Integer,
            order: Symbol,
            ?options: ::Hash[untyped, untyped]
          ) -> void

        def collection: () -> ::Array[untyped]

        def count: () -> Integer

        def next_page_starting_id: () -> (String | Integer)?

        def prev_page_starting_id: () -> (String | Integer)?

        def total_count: () -> Integer

        def connection: () -> PgEventstore::Connection

        # Returns the value of attribute config_name.
        attr_accessor config_name: Symbol

        # Returns the value of attribute starting_id.
        attr_accessor starting_id: (String | Integer)?

        # Returns the value of attribute per_page.
        attr_accessor per_page: Integer

        # Returns the value of attribute order.
        attr_accessor order: Symbol

        # Returns the value of attribute options.
        attr_accessor options: ::Hash[untyped, untyped]
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
pg_eventstore-1.6.0 sig/pg_eventstore/web/paginator/base_collection.rbs
pg_eventstore-1.5.0 sig/pg_eventstore/web/paginator/base_collection.rbs
pg_eventstore-1.4.0 sig/pg_eventstore/web/paginator/base_collection.rbs
pg_eventstore-1.3.4 sig/pg_eventstore/web/paginator/base_collection.rbs
pg_eventstore-1.3.3 sig/pg_eventstore/web/paginator/base_collection.rbs
pg_eventstore-1.3.2 sig/pg_eventstore/web/paginator/base_collection.rbs
pg_eventstore-1.3.1 sig/pg_eventstore/web/paginator/base_collection.rbs
pg_eventstore-1.3.0 sig/pg_eventstore/web/paginator/base_collection.rbs
pg_eventstore-1.2.0 sig/pg_eventstore/web/paginator/base_collection.rbs
pg_eventstore-1.1.5 sig/pg_eventstore/web/paginator/base_collection.rbs
pg_eventstore-1.1.4 sig/pg_eventstore/web/paginator/base_collection.rbs