Class: Nanobot::Config::TelegramConfig
- Inherits:
-
Struct
- Object
- Struct
- Nanobot::Config::TelegramConfig
- Defined in:
- lib/nanobot/config/schema.rb
Overview
Telegram channel configuration
Instance Attribute Summary collapse
-
#allow_from ⇒ Object
Returns the value of attribute allow_from.
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#proxy ⇒ Object
Returns the value of attribute proxy.
-
#token ⇒ Object
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(enabled: false, token: nil, allow_from: [], proxy: nil) ⇒ TelegramConfig
constructor
A new instance of TelegramConfig.
Constructor Details
#initialize(enabled: false, token: nil, allow_from: [], proxy: nil) ⇒ TelegramConfig
Returns a new instance of TelegramConfig.
128 129 130 |
# File 'lib/nanobot/config/schema.rb', line 128 def initialize(enabled: false, token: nil, allow_from: [], proxy: nil) super end |
Instance Attribute Details
#allow_from ⇒ Object
Returns the value of attribute allow_from
123 124 125 |
# File 'lib/nanobot/config/schema.rb', line 123 def allow_from @allow_from end |
#enabled ⇒ Object
Returns the value of attribute enabled
123 124 125 |
# File 'lib/nanobot/config/schema.rb', line 123 def enabled @enabled end |
#proxy ⇒ Object
Returns the value of attribute proxy
123 124 125 |
# File 'lib/nanobot/config/schema.rb', line 123 def proxy @proxy end |
#token ⇒ Object
Returns the value of attribute token
123 124 125 |
# File 'lib/nanobot/config/schema.rb', line 123 def token @token end |