Class: Bomberman::Connection
- Inherits:
-
Faraday::Connection
- Object
- Faraday::Connection
- Bomberman::Connection
- Defined in:
- lib/bomberman/connection.rb
Instance Method Summary collapse
-
#initialize ⇒ Connection
constructor
A new instance of Connection.
Constructor Details
#initialize ⇒ Connection
Returns a new instance of Connection.
5 6 7 8 9 10 |
# File 'lib/bomberman/connection.rb', line 5 def initialize super('https://' + Bomberman.url) self.headers['Content-Type'] = 'application/json; charset=utf-8' self.headers['Authorization'] = "Token token=#{Bomberman.api_key}" self end |