Class: Cfnlego::Resource
- Inherits:
-
Object
- Object
- Cfnlego::Resource
- Defined in:
- lib/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.
11 12 13 14 |
# File 'lib/cfnlego/resource.rb', line 11 def initialize(type, name) @type = type @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
9 10 11 |
# File 'lib/cfnlego/resource.rb', line 9 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
9 10 11 |
# File 'lib/cfnlego/resource.rb', line 9 def type @type end |
Instance Method Details
#attributes ⇒ Object
16 17 18 |
# File 'lib/cfnlego/resource.rb', line 16 def attributes definition['Attributes'] end |
#properties ⇒ Object
20 21 22 |
# File 'lib/cfnlego/resource.rb', line 20 def properties definition['Properties'] end |