class Cfnlego::Resource
Attributes
Public Class Methods
Source
# File lib/cfndsl/cfnlego/resource.rb, line 13 def initialize(type, name) @type = type @name = name end
Public Instance Methods
Source
# File lib/cfndsl/cfnlego/resource.rb, line 18 def attributes definition['Attributes'] end
Source
# File lib/cfndsl/cfnlego/resource.rb, line 22 def properties definition['Properties'] end
Private Instance Methods
Source
# File lib/cfndsl/cfnlego/resource.rb, line 28 def definition @definition ||= Cfnlego.resources[@type] rescue StandardError raise "unknown #{@type}, no matching definition found" end