Class: RingCentralSdk::REST::ConfigUser

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#extensionObject

Returns the value of attribute extension.



28
29
30
# File 'lib/ringcentral_sdk/rest/config.rb', line 28

def extension
  @extension
end

#passwordObject

Returns the value of attribute password.



29
30
31
# File 'lib/ringcentral_sdk/rest/config.rb', line 29

def password
  @password
end

#usernameObject

Returns the value of attribute username.



27
28
29
# File 'lib/ringcentral_sdk/rest/config.rb', line 27

def username
  @username
end

Instance Method Details

#load_envObject



31
32
33
34
35
# File 'lib/ringcentral_sdk/rest/config.rb', line 31

def load_env
  @username = ENV['RC_USER_USERNAME']
  @extension = ENV['RC_USER_EXTENSION']
  @password = ENV['RC_USER_PASSWORD']
end

#nilifyObject



37
38
39
40
41
# File 'lib/ringcentral_sdk/rest/config.rb', line 37

def nilify
  @username = ''
  @extension = ''
  @password = ''
end