Class: DACPClient::Browser::Device
- Inherits:
-
Struct
- Object
- Struct
- DACPClient::Browser::Device
- Defined in:
- lib/dacpclient/browser.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
-
#port ⇒ Object
Returns the value of attribute port.
-
#text_records ⇒ Object
Returns the value of attribute text_records.
Instance Method Summary collapse
Instance Attribute Details
#host ⇒ Object
Returns the value of attribute host
7 8 9 |
# File 'lib/dacpclient/browser.rb', line 7 def host @host end |
#port ⇒ Object
Returns the value of attribute port
7 8 9 |
# File 'lib/dacpclient/browser.rb', line 7 def port @port end |
#text_records ⇒ Object
Returns the value of attribute text_records
7 8 9 |
# File 'lib/dacpclient/browser.rb', line 7 def text_records @text_records end |
Instance Method Details
#database_id ⇒ Object
12 13 14 |
# File 'lib/dacpclient/browser.rb', line 12 def database_id text_records['Database ID'] || text_records['DbId'] end |
#name ⇒ Object
8 9 10 |
# File 'lib/dacpclient/browser.rb', line 8 def name text_records['Machine Name'] || text_records['CtlN'] end |