Class: Fog::Compute::Terremark::NodeService
- Inherits:
-
Model
- Object
- Model
- Fog::Compute::Terremark::NodeService
- Defined in:
- lib/fog/compute/terremark/models/nodeservice.rb
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
14 15 16 |
# File 'lib/fog/compute/terremark/models/nodeservice.rb', line 14 def destroy service.delete_node_service(self.Id) end |
#save ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/fog/compute/terremark/models/nodeservice.rb', line 18 def save requires :Name, :Port, :InternetServiceId data = service.add_node_service( self.InternetServiceId, self.IpAddress, self.Name, self.Port, "Enabled" => "true", "Description" => self.Name ) merge_attributes(data.body) true end |