Class: Telegram::Bot::Configuration
- Inherits:
-
Object
- Object
- Telegram::Bot::Configuration
- Defined in:
- lib/telegram/bot/configuration.rb
Instance Attribute Summary collapse
-
#botan_token ⇒ Object
Returns the value of attribute botan_token.
-
#name ⇒ Object
Returns the value of attribute name.
-
#raise_exceptions ⇒ Object
Returns the value of attribute raise_exceptions.
-
#token ⇒ Object
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
6 7 8 |
# File 'lib/telegram/bot/configuration.rb', line 6 def initialize @raise_exceptions = true end |
Instance Attribute Details
#botan_token ⇒ Object
Returns the value of attribute botan_token.
4 5 6 |
# File 'lib/telegram/bot/configuration.rb', line 4 def botan_token @botan_token end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/telegram/bot/configuration.rb', line 4 def name @name end |
#raise_exceptions ⇒ Object
Returns the value of attribute raise_exceptions.
4 5 6 |
# File 'lib/telegram/bot/configuration.rb', line 4 def raise_exceptions @raise_exceptions end |
#token ⇒ Object
Returns the value of attribute token.
4 5 6 |
# File 'lib/telegram/bot/configuration.rb', line 4 def token @token end |