Sha256: e5ee18809cc2b5fc03b368b0e65b18ccec4d68d11ad62395ddbedb6e8f17c169

Contents?: true

Size: 512 Bytes

Versions: 4

Compression:

Stored size: 512 Bytes

Contents

# frozen_string_literal: true

module Kanal
  module Plugins
    module UserSystem
      module Helpers
        #
        # Serves as a configuration storage for UserSystem plugin to allow enabling of automatic creation of users
        #
        class AutoCreateEnabler
          attr_reader :telegram_enabled

          def initialize
            @telegram_enabled = false
          end

          def enable_telegram
            @telegram_enabled = true
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
kanal-plugins-user_system-0.3.3 lib/kanal/plugins/user_system/helpers/auto_create_enabler.rb
kanal-plugins-user_system-0.3.2 lib/kanal/plugins/user_system/helpers/auto_create_enabler.rb
kanal-plugins-user_system-0.3.1 lib/kanal/plugins/user_system/helpers/auto_create_enabler.rb
kanal-plugins-user_system-0.3.0 lib/kanal/plugins/user_system/helpers/auto_create_enabler.rb