Class: Fog::Compute::OpenNebula::Networks
- Inherits:
-
Fog::Collection
- Object
- Fog::Collection
- Fog::Compute::OpenNebula::Networks
- 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={}) self.get_by_filter(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 |
#get_by_filter(filter) ⇒ Object
18 19 20 |
# File 'lib/fog/opennebula/models/compute/networks.rb', line 18 def get_by_filter(filter) load(service.list_networks(filter)) end |