Sha256: a6f0582fbb85f002420f46c34bc4ccf9fce8c7c02429220db112442fcbdd35db

Contents?: true

Size: 401 Bytes

Versions: 65

Compression:

Stored size: 401 Bytes

Contents

require 'fog/model'

module Fog
  module Terremark
    module Shared

      class Address < Fog::Model

        identity :id

        attribute :ip, 'name'

        def destroy
         requires :id
         connection.delete_public_ip(@id)
         true
        end

        private

        def href=(new_href)
          @id = new_href.split('/').last.to_i
        end

      end

    end
  end
end

Version data entries

65 entries across 65 versions & 2 rubygems

Version Path
fog-0.2.30 lib/fog/terremark/models/shared/address.rb
fog-0.2.28 lib/fog/terremark/models/shared/address.rb
fog-0.2.27 lib/fog/terremark/models/shared/address.rb
fog-0.2.26 lib/fog/terremark/models/shared/address.rb
fog-0.2.25 lib/fog/terremark/models/shared/address.rb
fog-0.2.24 lib/fog/terremark/models/shared/address.rb
tecnh-fog-0.2.23.vpc lib/fog/terremark/models/shared/address.rb
fog-0.2.23 lib/fog/terremark/models/shared/address.rb
fog-0.2.22 lib/fog/terremark/models/shared/address.rb
fog-0.2.21 lib/fog/terremark/models/shared/address.rb
fog-0.2.20 lib/fog/terremark/models/shared/address.rb
fog-0.2.19 lib/fog/terremark/models/shared/address.rb
fog-0.2.18 lib/fog/terremark/models/shared/address.rb
fog-0.2.17 lib/fog/terremark/models/shared/address.rb
fog-0.2.16 lib/fog/terremark/models/shared/address.rb
fog-0.2.15 lib/fog/terremark/models/shared/address.rb
fog-0.2.14 lib/fog/terremark/models/shared/address.rb
fog-0.2.13 lib/fog/terremark/models/shared/address.rb
fog-0.2.12 lib/fog/terremark/models/shared/address.rb
fog-0.2.11 lib/fog/terremark/models/shared/address.rb