Class: ScanDB::Host

Inherits:
Object
  • Object
show all
Includes:
Model
Defined in:
lib/scandb/host.rb

Instance Method Summary collapse

Methods included from Model

included

Instance Method Details

#host_nameObject

Returns the primary host name.



45
46
47
# File 'lib/scandb/host.rb', line 45

def host_name
  names.first
end

#to_sObject



49
50
51
# File 'lib/scandb/host.rb', line 49

def to_s
  ip
end