lib/ringcentral_sdk/rest/configuration.rb in ringcentral_sdk-2.3.0 vs lib/ringcentral_sdk/rest/configuration.rb in ringcentral_sdk-3.0.0
- old
+ new
@@ -8,12 +8,12 @@
module RingCentralSdk
module REST
# Configuration class populated by Client constructor block
class Configuration
attr_accessor :server_url
- attr_accessor :app_key
- attr_accessor :app_secret
+ attr_accessor :client_id
+ attr_accessor :client_secret
attr_accessor :redirect_url
attr_accessor :username
attr_accessor :extension
attr_accessor :password
@@ -42,11 +42,11 @@
end
def load_environment
Dotenv.load
@server_url = ENV['RINGCENTRAL_SERVER_URL'] if ENV.key? 'RINGCENTRAL_SERVER_URL'
- @app_key = ENV['RINGCENTRAL_CLIENT_ID'] if ENV.key? 'RINGCENTRAL_CLIENT_ID'
- @app_secret = ENV['RINGCENTRAL_CLIENT_SECRET'] if ENV.key? 'RINGCENTRAL_CLIENT_SECRET'
+ @client_id = ENV['RINGCENTRAL_CLIENT_ID'] if ENV.key? 'RINGCENTRAL_CLIENT_ID'
+ @client_secret = ENV['RINGCENTRAL_CLIENT_SECRET'] if ENV.key? 'RINGCENTRAL_CLIENT_SECRET'
@redirect_url = ENV['RINGCENTRAL_REDIRECT_URL'] if ENV.key? 'RINGCENTRAL_REDIRECT_URL'
@username = ENV['RINGCENTRAL_USERNAME'] if ENV.key? 'RINGCENTRAL_USERNAME'
@extension = ENV['RINGCENTRAL_EXTENSION'] if ENV.key? 'RINGCENTRAL_EXTENSION'
@password = ENV['RINGCENTRAL_PASSWORD'] if ENV.key? 'RINGCENTRAL_PASSWORD'
@token = ENV['RINGCENTRAL_TOKEN'] if ENV.key? 'RINGCENTRAL_TOKEN'