Method: ShareNotify::API#initialize
- Defined in:
- lib/share_notify/api.rb
#initialize(_token = nil) ⇒ API
Returns a new instance of API.
15 16 17 18 19 20 |
# File 'lib/share_notify/api.rb', line 15 def initialize(_token = nil) @headers = { 'Authorization' => "Token #{ShareNotify.config.fetch('token', nil)}", 'Content-Type' => 'application/json' } end |