class Harvest::OAuthCredentials

Public Class Methods

new(access_token) click to toggle source
# File lib/harvest/credentials.rb, line 24
def initialize(access_token)
  @access_token = access_token
end

Public Instance Methods

host() click to toggle source
# File lib/harvest/credentials.rb, line 33
def host
  "https://api.harvestapp.com"
end
set_authentication(request_options) click to toggle source
# File lib/harvest/credentials.rb, line 28
def set_authentication(request_options)
  request_options[:query] ||= {}
  request_options[:query]["access_token"] = @access_token
end