Class: Cfnlego::Resource
- Inherits:
-
Object
- Object
- Cfnlego::Resource
- Defined in:
- lib/cfndsl/cfnlego/resource.rb
Overview
Resource
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
- #attributes ⇒ Object
-
#initialize(type, name) ⇒ Resource
constructor
A new instance of Resource.
- #properties ⇒ Object
Constructor Details
#initialize(type, name) ⇒ Resource
Returns a new instance of Resource.
13 14 15 16 |
# File 'lib/cfndsl/cfnlego/resource.rb', line 13 def initialize(type, name) @type = type @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
11 12 13 |
# File 'lib/cfndsl/cfnlego/resource.rb', line 11 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
11 12 13 |
# File 'lib/cfndsl/cfnlego/resource.rb', line 11 def type @type end |
Instance Method Details
#attributes ⇒ Object
18 19 20 |
# File 'lib/cfndsl/cfnlego/resource.rb', line 18 def attributes definition['Attributes'] end |
#properties ⇒ Object
22 23 24 |
# File 'lib/cfndsl/cfnlego/resource.rb', line 22 def properties definition['Properties'] end |