Class: RingCentralSdk::REST::ConfigEnvRc

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfigEnvRc

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

#dataObject

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_envObject



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