Class: Fog::SharedFileSystem::OpenStack::Networks
- Inherits:
-
OpenStack::Collection
- Object
- Collection
- OpenStack::Collection
- Fog::SharedFileSystem::OpenStack::Networks
- Defined in:
- lib/fog/shared_file_system/openstack/models/networks.rb
Instance Attribute Summary
Attributes inherited from OpenStack::Collection
Instance Method Summary collapse
Methods inherited from OpenStack::Collection
Instance Method Details
#all(options = {}) ⇒ Object
10 11 12 |
# File 'lib/fog/shared_file_system/openstack/models/networks.rb', line 10 def all( = {}) load_response(service.list_share_networks_detail(), 'share_networks') end |
#destroy(id) ⇒ Object
21 22 23 24 |
# File 'lib/fog/shared_file_system/openstack/models/networks.rb', line 21 def destroy(id) net = find_by_id(id) net.destroy end |
#find_by_id(id) ⇒ Object Also known as: get
14 15 16 17 |
# File 'lib/fog/shared_file_system/openstack/models/networks.rb', line 14 def find_by_id(id) net_hash = service.get_share_network(id).body['share_network'] new(net_hash.merge(:service => service)) end |