Class: TerraformDSL::AWS::InternetGateway
- Defined in:
- lib/terraformdsl/aws.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from Resource
Instance Method Summary collapse
- #attr(attr) ⇒ Object
-
#initialize(name) ⇒ InternetGateway
constructor
A new instance of InternetGateway.
Methods inherited from Resource
Constructor Details
#initialize(name) ⇒ InternetGateway
Returns a new instance of InternetGateway.
169 170 171 |
# File 'lib/terraformdsl/aws.rb', line 169 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
172 173 174 |
# File 'lib/terraformdsl/aws.rb', line 172 def name @name end |
Instance Method Details
#attr(attr) ⇒ Object
174 |
# File 'lib/terraformdsl/aws.rb', line 174 def attr(attr); "${aws_internet_gateway.#{@name}.#{attr}}"; end |