class Harvest::OAuthCredentials
Public Class Methods
new(access_token: nil, client_id: nil)
click to toggle source
# File lib/harvest/credentials.rb, line 20 def initialize(access_token: nil, client_id: nil) @access_token = access_token @client_id = client_id end
Public Instance Methods
host()
click to toggle source
# File lib/harvest/credentials.rb, line 30 def host 'https://api.harvestapp.com/v2' end
set_authentication(request_options)
click to toggle source
# File lib/harvest/credentials.rb, line 25 def set_authentication(request_options) request_options[:query] ||= {} request_options[:query]["access_token"] = @access_token end