Class: Fog::Compute::RackspaceV2::Network
- Inherits:
-
Model
- Object
- Model
- Fog::Compute::RackspaceV2::Network
- Defined in:
- lib/fog/rackspace/models/compute_v2/network.rb
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
18 19 20 21 22 23 |
# File 'lib/fog/rackspace/models/compute_v2/network.rb', line 18 def destroy requires :identity service.delete_network(identity) true end |
#save ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/fog/rackspace/models/compute_v2/network.rb', line 10 def save requires :label, :cidr data = service.create_network(label, cidr) merge_attributes(data.body['network']) true end |