Class: CfnDsl::MetadataDefinition
- Defined in:
- lib/cfndsl/metadata.rb
Overview
Handles Metadata objects
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value) ⇒ MetadataDefinition
constructor
A new instance of MetadataDefinition.
- #to_json(*a) ⇒ Object
Methods inherited from JSONable
#declare, #incorrect_capitalization?, #method_missing, #ref_children, #titleize
Methods included from Functions
#FnAnd, #FnBase64, #FnEquals, #FnFindInMap, #FnFormat, #FnGetAZs, #FnGetAtt, #FnIf, #FnJoin, #FnNot, #FnOr, #FnSelect, #Ref
Methods included from RefCheck
#build_references, #ref_children
Constructor Details
#initialize(value) ⇒ MetadataDefinition
Returns a new instance of MetadataDefinition.
8 9 10 |
# File 'lib/cfndsl/metadata.rb', line 8 def initialize(value) @value = value end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class CfnDsl::JSONable
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
6 7 8 |
# File 'lib/cfndsl/metadata.rb', line 6 def value @value end |
Instance Method Details
#to_json(*a) ⇒ Object
12 13 14 |
# File 'lib/cfndsl/metadata.rb', line 12 def to_json(*a) @value.to_json(*a) end |