Method: Caly::Providers::Base#initialize

Defined in:
lib/caly/providers/base.rb

#initialize(token) ⇒ Base

Returns a new instance of Base.



8
9
10
11
# File 'lib/caly/providers/base.rb', line 8

def initialize(token)
  @headers = {Authorization: "Bearer #{token}", ContentType: "application/json"}
  @client = Caly::Client.new(@url, @headers)
end