Class: Metadata
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) ⇒ Metadata
constructor
A new instance of Metadata.
Methods included from CfnParser
#array, #hash, #intrinsic_function, #intrinsic_function?, #parse_cfn, #primitive
Constructor Details
#initialize(name, values) ⇒ Metadata
Returns a new instance of Metadata.
5 6 7 8 |
# File 'lib/metadata.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/metadata.rb', line 3 def name @name end |
#values ⇒ Object (readonly)
Returns the value of attribute values.
3 4 5 |
# File 'lib/metadata.rb', line 3 def values @values end |