Class: RingCentralSdk::REST::ConfigEnvRc
- Inherits:
-
Object
- Object
- RingCentralSdk::REST::ConfigEnvRc
- Defined in:
- lib/ringcentral_sdk/rest/config.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize ⇒ ConfigEnvRc
constructor
A new instance of ConfigEnvRc.
- #load_env ⇒ Object
Constructor Details
#initialize ⇒ ConfigEnvRc
Returns a new instance of ConfigEnvRc.
92 93 94 |
# File 'lib/ringcentral_sdk/rest/config.rb', line 92 def initialize @data = {} end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
91 92 93 |
# File 'lib/ringcentral_sdk/rest/config.rb', line 91 def data @data end |
Instance Method Details
#load_env ⇒ Object
95 96 97 98 99 100 |
# File 'lib/ringcentral_sdk/rest/config.rb', line 95 def load_env ENV.each do |k,v| next unless k.index('RC_') == 0 @data[k] = v end end |