Sha256: 3b77c3f56b6c9c1d8cf647ef108a6922258f2cf12bd9012ecbb202245f5fd965

Contents?: true

Size: 395 Bytes

Versions: 14

Compression:

Stored size: 395 Bytes

Contents

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

module Fog
  module Libvirt
    class Compute
      class Networks < Fog::Collection
        model Fog::Libvirt::Compute::Network

        def all(filter={})
          load(service.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 & 2 rubygems

Version Path
fog-libvirt-0.13.2 lib/fog/libvirt/models/compute/networks.rb
fog-libvirt-0.13.1 lib/fog/libvirt/models/compute/networks.rb
fog-libvirt-0.13.0 lib/fog/libvirt/models/compute/networks.rb
fog-libvirt-0.12.2 lib/fog/libvirt/models/compute/networks.rb
fog-libvirt-0.12.1 lib/fog/libvirt/models/compute/networks.rb
fog-libvirt-0.12.0 lib/fog/libvirt/models/compute/networks.rb
fog-libvirt-0.11.0 lib/fog/libvirt/models/compute/networks.rb
fog-libvirt-0.10.1 lib/fog/libvirt/models/compute/networks.rb
fog-libvirt-0.10.0 lib/fog/libvirt/models/compute/networks.rb
fog-libvirt-csem-0.9.0 lib/fog/libvirt/models/compute/networks.rb
fog-libvirt-0.9.0 lib/fog/libvirt/models/compute/networks.rb
fog-libvirt-0.8.0 lib/fog/libvirt/models/compute/networks.rb
fog-libvirt-0.7.0 lib/fog/libvirt/models/compute/networks.rb
fog-libvirt-0.6.0 lib/fog/libvirt/models/compute/networks.rb