Sha256: 34b3dd357b29b5c3d707c251bb0d69e738135b3fb8203bbed17a25a45daad1bb

Contents?: true

Size: 602 Bytes

Versions: 75

Compression:

Stored size: 602 Bytes

Contents

require 'fog/core/model'

module Fog
  module Terremark
    module Shared

      class Network < Fog::Model

        identity :id

        attribute :name
        attribute :subnet
        attribute :gateway
        attribute :netmask
        attribute :fencemode
        attribute :links

        def ips
          #Until there is a real model for these ?
          connection.get_network_ips(id).body['IpAddresses']
        end

        private

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

        def type=(new_type); end

      end

    end
  end
end

Version data entries

75 entries across 75 versions & 16 rubygems

Version Path
fog-nirvanix-1.8.2 lib/fog/terremark/models/shared/network.rb
fog-nirvanix-1.8.1 lib/fog/terremark/models/shared/network.rb
fog-parser-fix-1.6.1 lib/fog/terremark/models/shared/network.rb
fog-test-again-1.6.0 lib/fog/terremark/models/shared/network.rb
fog-parser-fix-1.6.0 lib/fog/terremark/models/shared/network.rb
ey-vendored-backup-3.0.27 vendor/gems/fog/lib/fog/terremark/models/shared/network.rb
fog-sgonyea-1.8.1 lib/fog/terremark/models/shared/network.rb
fog-1.8.0 lib/fog/terremark/models/shared/network.rb
fog-maestrodev-1.7.0.20121114190951 lib/fog/terremark/models/shared/network.rb
fog-1.7.0 lib/fog/terremark/models/shared/network.rb
fog-1.6.0 lib/fog/terremark/models/shared/network.rb
fog-1.5.0 lib/fog/terremark/models/shared/network.rb
fog-1.4.0 lib/fog/terremark/models/shared/network.rb
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/lib/fog/terremark/models/shared/network.rb
michiels-fog-1.3.1 lib/fog/terremark/models/shared/network.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/lib/fog/terremark/models/shared/network.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/lib/fog/terremark/models/shared/network.rb
fog-1.3.1 lib/fog/terremark/models/shared/network.rb
fog-1.3.0 lib/fog/terremark/models/shared/network.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/lib/fog/terremark/models/shared/network.rb