Sha256: baf3ff471b04cf4be46d6cb4bfd8522309a843461a6e2401d5c60ad3665bc644

Contents?: true

Size: 402 Bytes

Versions: 14

Compression:

Stored size: 402 Bytes

Contents

require 'fog/core/collection'
require 'fog/libvirt/models/compute/network'

module Fog
  module Compute
    class Libvirt

      class Networks < Fog::Collection

        model Fog::Compute::Libvirt::Network

        def all(filter={})
          load(connection.list_networks(filter))
        end

        def get(uuid)
          self.all(:uuid => uuid).first
        end

      end

    end
  end
end

Version data entries

14 entries across 14 versions & 8 rubygems

Version Path
fog-nirvanix-1.8.2 lib/fog/libvirt/models/compute/networks.rb
fog-nirvanix-1.8.1 lib/fog/libvirt/models/compute/networks.rb
fog-parser-fix-1.6.1 lib/fog/libvirt/models/compute/networks.rb
fog-test-again-1.6.0 lib/fog/libvirt/models/compute/networks.rb
fog-parser-fix-1.6.0 lib/fog/libvirt/models/compute/networks.rb
ey-vendored-backup-3.0.27 vendor/gems/fog/lib/fog/libvirt/models/compute/networks.rb
fog-sgonyea-1.8.1 lib/fog/libvirt/models/compute/networks.rb
fog-1.8.0 lib/fog/libvirt/models/compute/networks.rb
fog-maestrodev-1.7.0.20121114190951 lib/fog/libvirt/models/compute/networks.rb
fog-1.7.0 lib/fog/libvirt/models/compute/networks.rb
fog-1.6.0 lib/fog/libvirt/models/compute/networks.rb
fog-1.5.0 lib/fog/libvirt/models/compute/networks.rb
fog-1.4.0 lib/fog/libvirt/models/compute/networks.rb
michiels-fog-1.3.1 lib/fog/libvirt/models/compute/networks.rb