Class: Airplay::CLI::Doctor
- Inherits:
-
Object
- Object
- Airplay::CLI::Doctor
- Defined in:
- lib/airplay/cli/doctor.rb
Defined Under Namespace
Classes: DebugDevice
Instance Attribute Summary collapse
-
#devices ⇒ Object
Returns the value of attribute devices.
Instance Method Summary collapse
- #information ⇒ Object
-
#initialize ⇒ Doctor
constructor
A new instance of Doctor.
Constructor Details
#initialize ⇒ Doctor
Returns a new instance of Doctor.
15 16 17 |
# File 'lib/airplay/cli/doctor.rb', line 15 def initialize @devices = [] end |
Instance Attribute Details
#devices ⇒ Object
Returns the value of attribute devices.
13 14 15 |
# File 'lib/airplay/cli/doctor.rb', line 13 def devices @devices end |
Instance Method Details
#information ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/airplay/cli/doctor.rb', line 19 def information find_devices! devices.each do |device| puts <<-EOS.gsub!(" "*12, "") Name: #{device.node.name} Host: #{device.host} Port: #{device.resolved.port} Full Name: #{device.node.fullname} Iface: #{device.node.interface_name} TXT: #{device.resolved.text_record} EOS end end |