Class: Convection::Model::Template::Mapping
- Inherits:
-
Object
- Object
- Convection::Model::Template::Mapping
- Includes:
- DSL::Helpers
- Defined in:
- lib/convection/model/template/mapping.rb
Overview
Mapping
Instance Attribute Summary collapse
-
#items ⇒ Object
readonly
Returns the value of attribute items.
-
#template ⇒ Object
readonly
Returns the value of attribute template.
Instance Method Summary collapse
-
#initialize(name, parent) ⇒ Mapping
constructor
A new instance of Mapping.
- #item(key_1, key_2, value) ⇒ Object
- #render ⇒ Object
Methods included from DSL::Helpers
#camel_case, included, method_name, #screaming_snake_case, #snake_case
Methods included from DSL::IntrinsicFunctions
#base64, #find_in_map, #fn_and, #fn_equals, #fn_if, #fn_import_value, #fn_not, #fn_or, #fn_ref, #fn_sub, #get_att, #get_azs, included, #join, mixers, #select
Constructor Details
Instance Attribute Details
#items ⇒ Object (readonly)
Returns the value of attribute items.
23 24 25 |
# File 'lib/convection/model/template/mapping.rb', line 23 def items @items end |
#template ⇒ Object (readonly)
Returns the value of attribute template.
24 25 26 |
# File 'lib/convection/model/template/mapping.rb', line 24 def template @template end |
Instance Method Details
#item(key_1, key_2, value) ⇒ Object
33 34 35 |
# File 'lib/convection/model/template/mapping.rb', line 33 def item(key_1, key_2, value) items[key_1][key_2] = value end |
#render ⇒ Object
37 38 39 |
# File 'lib/convection/model/template/mapping.rb', line 37 def render items end |