Method: Aws::Endpoints::Reference#resolve
- Defined in:
- lib/aws-sdk-core/endpoints/reference.rb
#resolve(parameters, assigns) ⇒ 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.
18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/aws-sdk-core/endpoints/reference.rb', line 18 def resolve(parameters, assigns) if parameters.class.singleton_class::PARAM_MAP.key?(@ref) member_name = parameters.class.singleton_class::PARAM_MAP[@ref] parameters[member_name] elsif assigns.key?(@ref) assigns[@ref] else raise ArgumentError, "Reference #{@ref} is not a param or an assigned value." end end |