Class: TerraformDSL::AWS::RouteTable
- 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) ⇒ RouteTable
constructor
A new instance of RouteTable.
- #Route(*a, &b) ⇒ Object
Methods inherited from Resource
Constructor Details
#initialize(name) ⇒ RouteTable
Returns a new instance of RouteTable.
181 182 183 |
# File 'lib/terraformdsl/aws.rb', line 181 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
184 185 186 |
# File 'lib/terraformdsl/aws.rb', line 184 def name @name end |
Instance Method Details
#attr(attr) ⇒ Object
186 |
# File 'lib/terraformdsl/aws.rb', line 186 def attr(attr); "${aws_route_table.#{@name}.#{attr}}"; end |
#Route(*a, &b) ⇒ Object
188 |
# File 'lib/terraformdsl/aws.rb', line 188 def Route(*a, &b); add_resource(Route.new(*a), &b); end |