Method: Procore::Auth::ClientCredentials#initialize
- Defined in:
- lib/procore/auth/client_credentials.rb
#initialize(client_id:, client_secret:, host:) ⇒ ClientCredentials
Returns a new instance of ClientCredentials.
7 8 9 10 11 12 13 14 15 |
# File 'lib/procore/auth/client_credentials.rb', line 7 def initialize(client_id:, client_secret:, host:) unless client_id && client_secret raise OAuthError.new("No client_id or client_secret provided.") end @client_id = client_id @client_secret = client_secret @host = host end |