Sha256: 6d5af11e14876537f80ed495ca8cb1d472dc4e259a3b6f1ffd10230c37747216

Contents?: true

Size: 456 Bytes

Versions: 8

Compression:

Stored size: 456 Bytes

Contents

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

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

    STATES.each do |state|
      define_method state + '?' do
        @resource[:virtual_interface_state] == state
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
awspec-0.25.3 lib/awspec/type/directconnect_virtual_interface.rb
awspec-0.25.2 lib/awspec/type/directconnect_virtual_interface.rb
awspec-0.25.1 lib/awspec/type/directconnect_virtual_interface.rb
awspec-0.25.0 lib/awspec/type/directconnect_virtual_interface.rb
awspec-0.24.2 lib/awspec/type/directconnect_virtual_interface.rb
awspec-0.24.1 lib/awspec/type/directconnect_virtual_interface.rb
awspec-0.24.0 lib/awspec/type/directconnect_virtual_interface.rb
awspec-0.23.0 lib/awspec/type/directconnect_virtual_interface.rb