Method: Awspec::Type::Subnet#initialize

Defined in:
lib/awspec/type/subnet.rb

#initialize(id) ⇒ Subnet

Returns a new instance of Subnet.



6
7
8
9
10
# File 'lib/awspec/type/subnet.rb', line 6

def initialize(id)
  super
  @resource_via_client = find_subnet(id)
  @id = @resource_via_client[:subnet_id] if @resource_via_client
end