Class: VmPrivateIp
- Inherits:
-
Object
- Object
- VmPrivateIp
- Defined in:
- lib/secured_cloud_api_client/vm_private_ip.rb
Overview
A private IP of a virtual machine.
- @author
-
Alan Vella
Instance Method Summary collapse
- #get_details ⇒ Object
-
#initialize(ipAddress, assignedTo, publicIpMappings, nodeResource, organizationResource) ⇒ VmPrivateIp
constructor
A new instance of VmPrivateIp.
Constructor Details
#initialize(ipAddress, assignedTo, publicIpMappings, nodeResource, organizationResource) ⇒ VmPrivateIp
Returns a new instance of VmPrivateIp.
11 12 13 14 15 16 17 |
# File 'lib/secured_cloud_api_client/vm_private_ip.rb', line 11 def initialize(ipAddress, assignedTo, publicIpMappings, nodeResource, organizationResource) @ipAddress = ipAddress @assignedTo = assignedTo @publicIpMappings = publicIpMappings @nodeResource = nodeResource @organizationResource = organizationResource end |
Instance Method Details
#get_details ⇒ Object
20 21 22 23 24 25 26 27 |
# File 'lib/secured_cloud_api_client/vm_private_ip.rb', line 20 def get_details() details = "IP Address : #{@ipAddress}\n" details += "Assigned To : #{@assignedTo.join(", ")}\n" details += "Public IP Mappings : #{@publicIpMappings.join(", ")}\n" details += "Node Resource : #{@nodeResource}\n" details += "Organization Resource: #{@organizationResource}\n" return details end |