Sha256: b06be4950def0d67299150cdb5b113b941ab7bf5a463ca09b2f2cb7456d7e20e

Contents?: true

Size: 813 Bytes

Versions: 30

Compression:

Stored size: 813 Bytes

Contents

module Fog
  module Vcloud
    module Terremark
      module Ecloud

        module Real
          def networks(options = {})
            @networks ||= Fog::Vcloud::Terremark::Ecloud::Networks.new(options.merge(:connection => self))
          end
        end

        class Networks < Fog::Vcloud::Collection

          undef_method :create

          model Fog::Vcloud::Terremark::Ecloud::Network

          attribute :href

          def all
            if data = connection.get_vdc(href).body[:AvailableNetworks][:Network]
              load(data)
            end
          end

          def get(uri)
            if data = connection.get_network(uri)
              new(data.body)
            end
            rescue Fog::Errors::NotFound
            nil
          end

        end
      end
    end
  end
end

Version data entries

30 entries across 30 versions & 2 rubygems

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