Class: Fog::Rackspace::NetworkingV2::SecurityGroup
- Inherits:
-
Model
- Object
- Model
- Fog::Rackspace::NetworkingV2::SecurityGroup
- Defined in:
- lib/fog/rackspace/models/networking_v2/security_group.rb
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
23 24 25 26 27 28 |
# File 'lib/fog/rackspace/models/networking_v2/security_group.rb', line 23 def destroy requires :identity service.delete_security_group(identity) true end |
#save ⇒ Object
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/fog/rackspace/models/networking_v2/security_group.rb', line 12 def save data = unless self.id.nil? service.update_security_group(self) else service.create_security_group(self) end merge_attributes(data.body['security_group']) true end |