Class: Cb::Clients::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/cb/clients/base.rb

Class Method Summary collapse

Class Method Details

.cb_clientObject



15
16
17
# File 'lib/cb/clients/base.rb', line 15

def cb_client
  @cb_client ||= Cb::Utils::Api.instance
end

.headers(args) ⇒ Object



19
20
21
22
23
24
25
# File 'lib/cb/clients/base.rb', line 19

def headers(args)
  {
     'Accept' => 'application/json',
     'Authorization' => "Bearer #{ args[:oauth_token] }",
     'Content-Type' => 'application/json'
  }
end