Sha256: 25e63c6b8d2ad126669cb36b23e7759c37d3fc2fdd6ee11b61c88af574ffc55f
Contents?: true
Size: 384 Bytes
Versions: 3
Compression:
Stored size: 384 Bytes
Contents
module Awspec::Type class Subnet < Base def initialize(id) super @resource_via_client = find_subnet(id) @id = @resource_via_client[:subnet_id] if @resource_via_client end STATES = %w( available pending ) STATES.each do |state| define_method state + '?' do @resource_via_client[:state] == state end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
awspec-0.26.2 | lib/awspec/type/subnet.rb |
awspec-0.26.1 | lib/awspec/type/subnet.rb |
awspec-0.26.0 | lib/awspec/type/subnet.rb |