Class: Aws::Templates::Render::Utils::BaseTypeViews::ToHash
- Inherits:
-
BasicView
- Object
- Processor::Handler
- BasicView
- Aws::Templates::Render::Utils::BaseTypeViews::ToHash
- Defined in:
- lib/aws/templates/render/utils/base_type_views.rb
Overview
Convert to hash
Converts value to hash and iteratively renders each key and value in it.
Instance Attribute Summary
Attributes inherited from Processor::Handler
Instance Method Summary collapse
Methods inherited from Processor::Handler
for_entity, #handler_for, #in_context, #initialize, #processed_for, processor, #processor, register_in
Constructor Details
This class inherits a constructor from Aws::Templates::Processor::Handler
Instance Method Details
#to_rendered ⇒ Object
49 50 51 |
# File 'lib/aws/templates/render/utils/base_type_views.rb', line 49 def to_rendered _from(instance).map { |k, v| [processed_for(k), processed_for(v)] }.to_h end |