Method: Awspec::Type::NatGateway#initialize
- Defined in:
- lib/awspec/type/nat_gateway.rb
#initialize(id) ⇒ NatGateway
Returns a new instance of NatGateway.
3 4 5 6 7 |
# File 'lib/awspec/type/nat_gateway.rb', line 3 def initialize(id) super @resource_via_client = find_nat_gateway(id) @id = @resource_via_client[:nat_gateway_id] if @resource_via_client end |