Class: Caly::Providers::Base
- Inherits:
-
Object
- Object
- Caly::Providers::Base
- Extended by:
- Forwardable
- Defined in:
- lib/caly/providers/base.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(token) ⇒ Base
constructor
A new instance of Base.
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 |