Class: Kanal::Plugins::UserSystem::Helpers::AutoCreateEnabler

Inherits:
Object
  • Object
show all
Defined in:
lib/kanal/plugins/user_system/helpers/auto_create_enabler.rb

Overview

Serves as a configuration storage for UserSystem plugin to allow enabling of automatic creation of users

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAutoCreateEnabler

Returns a new instance of AutoCreateEnabler.



13
14
15
# File 'lib/kanal/plugins/user_system/helpers/auto_create_enabler.rb', line 13

def initialize
  @telegram_enabled = false
end

Instance Attribute Details

#telegram_enabledObject (readonly)

Returns the value of attribute telegram_enabled.



11
12
13
# File 'lib/kanal/plugins/user_system/helpers/auto_create_enabler.rb', line 11

def telegram_enabled
  @telegram_enabled
end

Instance Method Details

#enable_telegramObject



17
18
19
# File 'lib/kanal/plugins/user_system/helpers/auto_create_enabler.rb', line 17

def enable_telegram
  @telegram_enabled = true
end