Class: VmPublicIp
- Inherits:
-
Object
- Object
- VmPublicIp
- Defined in:
- lib/secured_cloud_api_client/vm_public_ip.rb
Overview
A public IP of a virtual machine.
- @author
-
Alan Vella
Instance Method Summary collapse
- #get_details ⇒ Object
-
#initialize(ipAddress, ipType, reserved, assignedTo, privateIpMapping, nodeResource, organizationResource) ⇒ VmPublicIp
constructor
A new instance of VmPublicIp.
Constructor Details
#initialize(ipAddress, ipType, reserved, assignedTo, privateIpMapping, nodeResource, organizationResource) ⇒ VmPublicIp
Returns a new instance of VmPublicIp.
11 12 13 14 15 16 17 18 19 |
# File 'lib/secured_cloud_api_client/vm_public_ip.rb', line 11 def initialize(ipAddress, ipType, reserved, assignedTo, privateIpMapping, nodeResource, organizationResource) @ipAddress = ipAddress @ipType = ipType @reserved = reserved @assignedTo = assignedTo @privateIpMapping = privateIpMapping @nodeResource = nodeResource @organizationResource = organizationResource end |
Instance Method Details
#get_details ⇒ Object
22 23 24 25 26 27 28 29 30 31 |
# File 'lib/secured_cloud_api_client/vm_public_ip.rb', line 22 def get_details() details = "IP Address : #{@ipAddress}\n" details += "IP Type : #{@ipType}\n" details += "Reserved : #{@reserved}\n" details += "Assigned To : #{@assignedTo.join(", ")}\n" details += "Private IP Mapping : #{@privateIpMapping}\n" details += "Node Resource : #{@nodeResource}\n" details += "Organization Resource: #{@organizationResource}\n" return details end |