Class: Tessa::Config
- Inherits:
-
Object
- Object
- Tessa::Config
- Defined in:
- lib/tessa/config.rb
Constant Summary collapse
- DEFAULT_STRATEGY =
"default"
Instance Method Summary collapse
Instance Method Details
#connection ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/tessa/config.rb', line 12 def connection @connection ||= Faraday.new(url: url) do |conn| conn.basic_auth username, password conn.request :url_encoded conn.adapter Faraday.default_adapter end end |