Class: Condition
Instance Attribute Summary collapse
-
#evaluations ⇒ Object
readonly
Returns the value of attribute evaluations.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, eval) ⇒ Condition
constructor
A new instance of Condition.
Methods included from CfnParser
#array, #hash, #intrinsic_function, #intrinsic_function?, #parse_cfn, #primitive
Constructor Details
#initialize(name, eval) ⇒ Condition
Returns a new instance of Condition.
5 6 7 8 |
# File 'lib/condition.rb', line 5 def initialize(name, eval) @name = name @evaluations = parse_cfn(eval) end |
Instance Attribute Details
#evaluations ⇒ Object (readonly)
Returns the value of attribute evaluations.
3 4 5 |
# File 'lib/condition.rb', line 3 def evaluations @evaluations end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/condition.rb', line 3 def name @name end |