Method: LinuxAdmin::NetworkInterface#address

Defined in:
lib/linux_admin/network_interface.rb

#addressString

Retrieve the IPv4 address assigned to the interface

Returns:

  • (String)

    IPv4 address for the managed interface



63
64
65
# File 'lib/linux_admin/network_interface.rb', line 63

def address
  @network_conf[:address]
end