Class: CfnDsl::MetadataDefinition
- Defined in:
- lib/cfndsl/Metadata.rb
Instance Method Summary collapse
-
#initialize(value) ⇒ MetadataDefinition
constructor
Handles Metadata objects.
- #to_json(*a) ⇒ Object
- #value ⇒ 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
Constructor Details
#initialize(value) ⇒ MetadataDefinition
Handles Metadata objects
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 Method Details
#to_json(*a) ⇒ Object
16 17 18 |
# File 'lib/cfndsl/Metadata.rb', line 16 def to_json(*a) @value.to_json(*a) end |
#value ⇒ Object
12 13 14 |
# File 'lib/cfndsl/Metadata.rb', line 12 def value return @value end |