Class: CfnDsl::RefDefinition

Inherits:
JSONable show all
Defined in:
lib/cfndsl/jsonable.rb

Overview

Handles the Ref objects

Instance Method Summary collapse

Methods inherited from JSONable

#as_json, #declare, #incorrect_capitalization?, #method_missing, #ref_children, #titleize, #to_json

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) ⇒ RefDefinition

Returns a new instance of RefDefinition.



215
216
217
# File 'lib/cfndsl/jsonable.rb', line 215

def initialize(value)
  @Ref = value
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class CfnDsl::JSONable

Instance Method Details

#all_refsObject



219
220
221
# File 'lib/cfndsl/jsonable.rb', line 219

def all_refs
  [@Ref]
end