Sha256: 0c08bff504b965f36a399f692f205d7a271e5fad6b0b56e215dacdfa40300042

Contents?: true

Size: 496 Bytes

Versions: 34

Compression:

Stored size: 496 Bytes

Contents

module Awspec::Type
  class DirectconnectVirtualInterface < Base
    def initialize(id)
      super
      @resource_via_client = find_virtual_interface(id)
      @id = @resource_via_client.virtual_interface_id if @resource_via_client
    end

    STATES = %w(
      confirming verifying pending available
      deleting deleted rejected
    )

    STATES.each do |state|
      define_method state + '?' do
        @resource_via_client.virtual_interface_state == state
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
awspec-0.38.0 lib/awspec/type/directconnect_virtual_interface.rb
awspec-0.37.8 lib/awspec/type/directconnect_virtual_interface.rb
awspec-0.37.7 lib/awspec/type/directconnect_virtual_interface.rb
awspec-0.37.6 lib/awspec/type/directconnect_virtual_interface.rb
awspec-0.37.5 lib/awspec/type/directconnect_virtual_interface.rb
awspec-0.37.4 lib/awspec/type/directconnect_virtual_interface.rb
awspec-0.37.3 lib/awspec/type/directconnect_virtual_interface.rb
awspec-0.37.2 lib/awspec/type/directconnect_virtual_interface.rb
awspec-0.37.1 lib/awspec/type/directconnect_virtual_interface.rb
awspec-0.37.0 lib/awspec/type/directconnect_virtual_interface.rb
awspec-0.36.1 lib/awspec/type/directconnect_virtual_interface.rb
awspec-0.36.0 lib/awspec/type/directconnect_virtual_interface.rb
awspec-0.35.0 lib/awspec/type/directconnect_virtual_interface.rb
awspec-0.34.0 lib/awspec/type/directconnect_virtual_interface.rb