class IpMapping
A mapping between a set of public IPs and a private IP.
- @author
-
Alan Vella
Public Class Methods
new(privateIp, publicIps)
click to toggle source
# File lib/secured_cloud_api_client/ip_mapping.rb, line 11 def initialize(privateIp, publicIps) @privateIp = privateIp @publicIps = publicIps end
Public Instance Methods
get_details()
click to toggle source
# File lib/secured_cloud_api_client/ip_mapping.rb, line 17 def get_details() s = "" if (@publicIps == nil) then s = " Public IPs [ - ] => " else s = " Public IPs [" + @publicIps.join(", ") + "] => " end s += " Private IP [" + @privateIp + "]" return s end
get_public_ips()
click to toggle source
# File lib/secured_cloud_api_client/ip_mapping.rb, line 29 def get_public_ips() return @publicIps end