Class: IControl::Common::IPHost

Inherits:
Base::Struct
  • Object
show all
Defined in:
lib/icontrol/common.rb,
lib/icontrol/common.rb

Overview

An struct that specifies either an explicit IP address, or a hostname.

Instance Attribute Summary collapse

Instance Attribute Details

#ip_or_hostString

The string representing either an IP address or a hostname.

Returns:

  • (String)

    the current value of ip_or_host



131
132
133
# File 'lib/icontrol/common.rb', line 131

def ip_or_host
  @ip_or_host
end

#typeIControl::Common::IPHostType

An indicator of what type of value the ip_or_host string represents.

Returns:



131
132
133
# File 'lib/icontrol/common.rb', line 131

def type
  @type
end