Class: DACPClient::Browser::Device

Inherits:
Struct
  • Object
show all
Defined in:
lib/dacpclient/browser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#hostObject

Returns the value of attribute host

Returns:

  • (Object)

    the current value of host



7
8
9
# File 'lib/dacpclient/browser.rb', line 7

def host
  @host
end

#portObject

Returns the value of attribute port

Returns:

  • (Object)

    the current value of port



7
8
9
# File 'lib/dacpclient/browser.rb', line 7

def port
  @port
end

#text_recordsObject

Returns the value of attribute text_records

Returns:

  • (Object)

    the current value of text_records



7
8
9
# File 'lib/dacpclient/browser.rb', line 7

def text_records
  @text_records
end

Instance Method Details

#database_idObject



12
13
14
# File 'lib/dacpclient/browser.rb', line 12

def database_id
  text_records['Database ID'] || text_records['DbId']
end

#nameObject



8
9
10
# File 'lib/dacpclient/browser.rb', line 8

def name
  text_records['Machine Name'] || text_records['CtlN']
end