Method: Awspec::Type::Vpc#initialize
- Defined in:
- lib/awspec/type/vpc.rb
#initialize(id) ⇒ Vpc
Returns a new instance of Vpc.
5 6 7 8 9 10 |
# File 'lib/awspec/type/vpc.rb', line 5 def initialize(id) super @client = @ec2_client @resource = find_vpc(id) @id = @resource[:vpc_id] if @resource end |