Sha256: 2142e74f60bb6eaaf751b6c5dd3180e87141a3a9b157a2cf81a63bbb0d69378c

Contents?: true

Size: 431 Bytes

Versions: 3

Compression:

Stored size: 431 Bytes

Contents

# typed: strict
# frozen_string_literal: true

module Etwin
  module Auth
    # Authentication type enum
    class AuthType < T::Enum
      extend T::Sig

      enums do
        Guest = new('Guest')
        User = new('User')
      end

      sig { returns(String) }
      def to_s
        T.cast(serialize, String)
      end

      sig { returns(String) }
      def inspect
        "AuthType(#{self})"
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
etwin-0.0.3 lib/etwin/auth/auth_type.rb
etwin-0.0.2 lib/etwin/auth/auth_type.rb
etwin-0.0.1 lib/etwin/auth/auth_type.rb