Class: Fog::Rackspace::NetworkingV2::Network
- Inherits:
-
Model
- Object
- Model
- Fog::Rackspace::NetworkingV2::Network
- Defined in:
- lib/fog/rackspace/models/networking_v2/network.rb
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
27 28 29 30 31 32 |
# File 'lib/fog/rackspace/models/networking_v2/network.rb', line 27 def destroy requires :identity service.delete_network(identity) true end |
#save ⇒ Object
16 17 18 19 20 21 22 23 24 25 |
# File 'lib/fog/rackspace/models/networking_v2/network.rb', line 16 def save data = unless self.id.nil? service.update_network(self) else service.create_network(self) end merge_attributes(data.body['network']) true end |