Class: Airplay::CLI::Doctor::DebugDevice
- Inherits:
-
Struct
- Object
- Struct
- Airplay::CLI::Doctor::DebugDevice
- Defined in:
- lib/airplay/cli/doctor.rb
Instance Attribute Summary collapse
-
#node ⇒ Object
Returns the value of attribute node.
-
#resolved ⇒ Object
Returns the value of attribute resolved.
Instance Method Summary collapse
Instance Attribute Details
#node ⇒ Object
Returns the value of attribute node
4 5 6 |
# File 'lib/airplay/cli/doctor.rb', line 4 def node @node end |
#resolved ⇒ Object
Returns the value of attribute resolved
4 5 6 |
# File 'lib/airplay/cli/doctor.rb', line 4 def resolved @resolved end |
Instance Method Details
#host ⇒ Object
5 6 7 8 9 10 |
# File 'lib/airplay/cli/doctor.rb', line 5 def host info = Socket.getaddrinfo(resolved.target, nil, Socket::AF_INET) info[0][2] rescue SocketError target end |