Sha256: a2ccda874436b943f7668f5abb3c2f686002ceb373320adbd7e5acc458ea95f9

Contents?: true

Size: 436 Bytes

Versions: 103

Compression:

Stored size: 436 Bytes

Contents

module Awspec::Type
  class Eip < ResourceBase
    def resource_via_client
      @resource_via_client ||= select_eip_by_public_ip(@display_name)
    end

    def id
      @id ||= resource_via_client.last.public_ip if resource_via_client
    end

    def associated_to?(instance_id)
      return false unless resource_via_client.last.instance_id == instance_id
      resource_via_client.last.instance_id == instance_id
    end
  end
end

Version data entries

103 entries across 103 versions & 4 rubygems

Version Path
awspec-0.79.1 lib/awspec/type/eip.rb
awspec-0.79.0 lib/awspec/type/eip.rb
awspec-0.78.1 lib/awspec/type/eip.rb