Sha256: 4e9b5a529fb001ac9dcd1bde716c79c32b217948ddc7a5449420266666242416

Contents?: true

Size: 468 Bytes

Versions: 22

Compression:

Stored size: 468 Bytes

Contents

# frozen_string_literal: true

module Mihari
  module Structs
    module Filters
      class Search < Dry::Struct
        # @!attribute [r] q
        #   @return [String]
        attribute :q, Types::String

        # @!attribute [r] page
        #   @return [Integer, nil]
        attribute? :page, Types::Int.default(1)

        # @!attribute [r] limit
        #   @return [Integer, nil]
        attribute? :limit, Types::Int.default(10)
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
mihari-7.0.1 lib/mihari/structs/filters.rb
mihari-7.0.0 lib/mihari/structs/filters.rb