Sha256: 0bc3d34f7a8b03a684c14a1f2ca9372e11133f94f6acc861b5a11d046228598e

Contents?: true

Size: 1015 Bytes

Versions: 4

Compression:

Stored size: 1015 Bytes

Contents

module Mihari
  module Structs
    module Rule
      class SearchFilter < Dry::Struct
      end

      class SearchFilterWithPagination < SearchFilter
        def without_pagination: () -> SearchFilter
      end

      class Rule
        attr_reader data: Hash

        attr_reader errors: Array[untypes]

        def initialize: (Hash data) -> void

        #
        # @return [Boolean]
        #
        def errors?: () -> (bool)

        #
        # @return [Array[String]]
        #
        def error_messages: () -> (Array[String])

        def validate: () -> void

        def validate!: () -> void

        def []: (untyped key) -> untyped

        #
        # @return [String]
        #
        def id: () -> String

        #
        # @return [String]
        #
        def title: () -> String

        #
        # @return [String]
        #
        def description: () -> String

        #
        # @return [Mihari::Rule]
        #
        def to_model: () -> Mihari::Rule
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mihari-4.1.2 sig/lib/mihari/structs/rule.rbs
mihari-4.1.1 sig/lib/mihari/structs/rule.rbs
mihari-4.1.0 sig/lib/mihari/structs/rule.rbs
mihari-4.0.0 sig/lib/mihari/structs/rule.rbs