Class: Convection::Model::Template::Condition
- Inherits:
-
Object
- Object
- Convection::Model::Template::Condition
- Includes:
- DSL::Helpers
- Defined in:
- lib/convection/model/template/condition.rb
Defined Under Namespace
Classes: ConditionalFunction
Constant Summary
- CONDITIONAL_FUNCTION_SYNTAX_MAP =
{ fn_and: 'Fn::And', fn_equals: 'Fn::Equals', fn_if: 'Fn::If', fn_not: 'Fn::Not', fn_or: 'Fn::Or' }.freeze
Instance Attribute Summary collapse
-
#condition ⇒ Object
readonly
Returns the value of attribute condition.
-
#template ⇒ Object
readonly
Returns the value of attribute template.
Instance Method Summary collapse
-
#initialize(name, parent) ⇒ Condition
constructor
A new instance of Condition.
- #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_not, #fn_or, #fn_ref, #get_att, #get_azs, #join, #select
Constructor Details
#initialize(name, parent) ⇒ Condition
Returns a new instance of Condition
25 26 27 28 |
# File 'lib/convection/model/template/condition.rb', line 25 def initialize(name, parent) @name = name @template = parent.template end |
Instance Attribute Details
#condition ⇒ Object (readonly)
Returns the value of attribute condition
16 17 18 |
# File 'lib/convection/model/template/condition.rb', line 16 def condition @condition end |
#template ⇒ Object (readonly)
Returns the value of attribute template
17 18 19 |
# File 'lib/convection/model/template/condition.rb', line 17 def template @template end |
Instance Method Details
#render ⇒ Object
30 31 32 |
# File 'lib/convection/model/template/condition.rb', line 30 def render condition.render end |