Method: Aws::SharedConfig.config_reader
- Defined in:
- lib/aws-sdk-core/shared_config.rb
.config_reader(*attrs) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Add an accessor method (similar to attr_reader) to return a configuration value Uses the get_config_value below to control where values are loaded from
139 140 141 142 143 |
# File 'lib/aws-sdk-core/shared_config.rb', line 139 def self.config_reader(*attrs) attrs.each do |attr| define_method(attr) { |opts = {}| get_config_value(attr.to_s, opts) } end end |