Class: Metadata

Inherits:
Object
  • Object
show all
Includes:
CfnParser
Defined in:
lib/metadata.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/metadata.rb', line 3

def name
  @name
end

#valuesObject (readonly)

Returns the value of attribute values.



3
4
5
# File 'lib/metadata.rb', line 3

def values
  @values
end