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