Class: Caly::Providers::Base

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/caly/providers/base.rb

Direct Known Subclasses

GoogleOauth2, MicrosoftGraph

Instance Method Summary collapse

Constructor Details

#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