Class: Cylons::Interface

Inherits:
Object
  • Object
show all
Defined in:
lib/cylons/interface.rb

Class Method Summary collapse

Class Method Details

.primaryObject



4
5
6
# File 'lib/cylons/interface.rb', line 4

def self.primary
  ::IPSocket.getaddress(::Socket.gethostname)
end