Sha256: 1a5bb7285ffac8f7ac2f5cfff9feecb3e31a8601dfc754bc5c3c92a9f04ded98

Contents?: true

Size: 846 Bytes

Versions: 4

Compression:

Stored size: 846 Bytes

Contents

# typed: strict
# frozen_string_literal: true

module Etwin
  module Core
    # Object type enum
    class ObjectType < T::Enum
      extend T::Sig

      enums do
        ClientForumActor = new('ClientForumActor')
        ForumPost = new('ForumPost')
        ForumPostRevision = new('ForumPostRevision')
        ForumSection = new('ForumSection')
        ForumThread = new('ForumThread')
        HammerfestUser = new('HammerfestUser')
        OauthClient = new('OauthClient')
        RoleForumActor = new('RoleForumActor')
        TwinoidUser = new('TwinoidUser')
        User = new('User')
        UserForumActor = new('UserForumActor')
      end

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
etwin-0.3.2 lib/etwin/core/object_type.rb
etwin-0.0.3 lib/etwin/core/object_type.rb
etwin-0.0.2 lib/etwin/core/object_type.rb
etwin-0.0.1 lib/etwin/core/object_type.rb