Method: Fog::Network::OpenStack::Networks#get

Defined in:
lib/fog/network/openstack/models/networks.rb

#get(network_id) ⇒ Object



22
23
24
25
26
27
28
# File 'lib/fog/network/openstack/models/networks.rb', line 22

def get(network_id)
  if network = service.get_network(network_id).body['network']
    new(network)
  end
rescue Fog::Network::OpenStack::NotFound
  nil
end