Class: Telegram::Bot::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/telegram/bot/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#adapterObject

Returns the value of attribute adapter.



6
7
8
# File 'lib/telegram/bot/configuration.rb', line 6

def adapter
  @adapter
end

#connection_open_timeoutObject

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_timeoutObject

Returns the value of attribute connection_timeout.



6
7
8
# File 'lib/telegram/bot/configuration.rb', line 6

def connection_timeout
  @connection_timeout
end