Class: AvahiService

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#ethObject

Returns the value of attribute eth.



200
201
202
# File 'lib/findme.rb', line 200

def eth
  @eth
end

#hostnameObject

Returns the value of attribute hostname.



200
201
202
# File 'lib/findme.rb', line 200

def hostname
  @hostname
end

#hosttxtObject

Returns the value of attribute hosttxt.



200
201
202
# File 'lib/findme.rb', line 200

def hosttxt
  @hosttxt
end

#ipObject

Returns the value of attribute ip.



200
201
202
# File 'lib/findme.rb', line 200

def ip
  @ip
end

#ipv4Object

Returns the value of attribute ipv4.



200
201
202
# File 'lib/findme.rb', line 200

def ipv4
  @ipv4
end

#portObject

Returns the value of attribute port.



200
201
202
# File 'lib/findme.rb', line 200

def port
  @port
end

#serviceObject

Returns the value of attribute service.



200
201
202
# File 'lib/findme.rb', line 200

def service
  @service
end

#txtObject

Returns the value of attribute txt.



200
201
202
# File 'lib/findme.rb', line 200

def txt
  @txt
end

Instance Method Details

#inspectObject



206
207
208
# File 'lib/findme.rb', line 206

def inspect
  "#<eth: #{eth}, ipv4: #{ipv4}, ip: #{ip}, hosttxt: #{hosttxt}, hostname: #{hostname}, port: #{port}, txt: #{txt}, service: #{service}>"
end

#ip_and_portObject



202
203
204
# File 'lib/findme.rb', line 202

def ip_and_port
  [ip, port]
end