class Cb::Clients::Base
Public Class Methods
cb_client(headers: {}, use_default_params: true)
click to toggle source
# File lib/cb/clients/base.rb, line 15 def cb_client(headers: {}, use_default_params: true) @cb_client ||= Cb::Utils::Api.instance(headers: headers, use_default_params: use_default_params) end
headers(args, accept_header: 'application/json')
click to toggle source
# File lib/cb/clients/base.rb, line 19 def headers(args, accept_header: 'application/json') { 'Accept' => accept_header, 'Authorization' => "Bearer #{ args[:oauth_token] }", 'Content-Type' => 'application/json' } end