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