Class: Resource
Constant Summary collapse
- ATTRIBUTES =
[ :deletion_policy, :depends_on, :metadata, :update_policy, :condition, :type, :properties, :creation_policy ]
Instance Method Summary collapse
-
#initialize(name, cfn_hash) ⇒ Resource
constructor
A new instance of Resource.
Methods included from CfnParser
#array, #hash, #intrinsic_function, #intrinsic_function?, #parse_cfn, #primitive
Constructor Details
#initialize(name, cfn_hash) ⇒ Resource
Returns a new instance of Resource.
17 18 19 20 21 22 |
# File 'lib/resource.rb', line 17 def initialize(name, cfn_hash) @name = name ATTRIBUTES.each do |a| send(attribute_type(a), cfn_hash, a.to_s) end end |