Class: RingCentralSdk::REST::Config
- Inherits:
-
Object
- Object
- RingCentralSdk::REST::Config
- Defined in:
- lib/ringcentral_sdk/rest/config.rb
Instance Attribute Summary collapse
-
#app ⇒ Object
Returns the value of attribute app.
-
#env ⇒ Object
Returns the value of attribute env.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #load_dotenv ⇒ Object
Constructor Details
#initialize ⇒ Config
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
#app ⇒ Object
Returns the value of attribute app.
6 7 8 |
# File 'lib/ringcentral_sdk/rest/config.rb', line 6 def app @app end |
#env ⇒ Object
Returns the value of attribute env.
7 8 9 |
# File 'lib/ringcentral_sdk/rest/config.rb', line 7 def env @env end |
#user ⇒ Object
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_dotenv ⇒ Object
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 |