Class: TerraformDSL::AWS::InternetGateway

Inherits:
Resource
  • Object
show all
Defined in:
lib/terraformdsl/aws.rb

Instance Attribute Summary collapse

Attributes inherited from Resource

#parent

Instance Method Summary collapse

Methods inherited from Resource

#accept, #set_parent

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

#nameObject (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