Class: Telegram::Bot::Configuration
- Inherits:
-
Object
- Object
- Telegram::Bot::Configuration
- Defined in:
- lib/telegram/bot/configuration.rb
Instance Attribute Summary collapse
-
#adapter ⇒ Object
Returns the value of attribute adapter.
-
#connection_open_timeout ⇒ Object
Returns the value of attribute connection_open_timeout.
-
#connection_timeout ⇒ Object
Returns the value of attribute connection_timeout.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
8 9 10 11 12 |
# File 'lib/telegram/bot/configuration.rb', line 8 def initialize @adapter = Faraday.default_adapter @connection_open_timeout = 20 @connection_timeout = 20 end |
Instance Attribute Details
#adapter ⇒ Object
Returns the value of attribute adapter.
6 7 8 |
# File 'lib/telegram/bot/configuration.rb', line 6 def adapter @adapter end |
#connection_open_timeout ⇒ Object
Returns the value of attribute connection_open_timeout.
6 7 8 |
# File 'lib/telegram/bot/configuration.rb', line 6 def connection_open_timeout @connection_open_timeout end |
#connection_timeout ⇒ Object
Returns the value of attribute connection_timeout.
6 7 8 |
# File 'lib/telegram/bot/configuration.rb', line 6 def connection_timeout @connection_timeout end |