Class: Kanal::Plugins::UserSystem::Helpers::AutoCreateEnabler
- Inherits:
-
Object
- Object
- Kanal::Plugins::UserSystem::Helpers::AutoCreateEnabler
- 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
-
#telegram_enabled ⇒ Object
readonly
Returns the value of attribute telegram_enabled.
Instance Method Summary collapse
- #enable_telegram ⇒ Object
-
#initialize ⇒ AutoCreateEnabler
constructor
A new instance of AutoCreateEnabler.
Constructor Details
#initialize ⇒ AutoCreateEnabler
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_enabled ⇒ Object (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_telegram ⇒ Object
17 18 19 |
# File 'lib/kanal/plugins/user_system/helpers/auto_create_enabler.rb', line 17 def enable_telegram @telegram_enabled = true end |