Class: RingCentralSdk::REST::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/ringcentral_sdk/rest/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



9
10
11
12
13
# File 'lib/ringcentral_sdk/rest/config.rb', line 9

def initialize
  @app = RingCentralSdk::REST::ConfigApp.new
  @user = RingCentralSdk::REST::ConfigUser.new
  @env = RingCentralSdk::REST::ConfigEnvRc.new
end

Instance Attribute Details

#appObject

Returns the value of attribute app.



6
7
8
# File 'lib/ringcentral_sdk/rest/config.rb', line 6

def app
  @app
end

#envObject

Returns the value of attribute env.



7
8
9
# File 'lib/ringcentral_sdk/rest/config.rb', line 7

def env
  @env
end

#userObject

Returns the value of attribute user.



5
6
7
# File 'lib/ringcentral_sdk/rest/config.rb', line 5

def user
  @user
end

Instance Method Details

#load_dotenvObject



15
16
17
18
19
20
21
# File 'lib/ringcentral_sdk/rest/config.rb', line 15

def load_dotenv
  Dotenv.load
  @app.load_env()
  @user.load_env()
  @env.load_env()
  return self
end