Class: Fog::Compute::OpenNebula::Networks

Inherits:
Fog::Collection
  • Object
show all
Defined in:
lib/fog/opennebula/models/compute/networks.rb

Instance Method Summary collapse

Instance Method Details

#all(filter = {}) ⇒ Object



10
11
12
# File 'lib/fog/opennebula/models/compute/networks.rb', line 10

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

#get(id) ⇒ Object



14
15
16
# File 'lib/fog/opennebula/models/compute/networks.rb', line 14

def get(id)
  self.all({:id => id}).first
end