Method: DNSSD::Reply#protocol

Defined in:
lib/dnssd/reply.rb

#protocolObject

Protocol of this service

Raises:

  • (TypeError)


64
65
66
67
68
69
# File 'lib/dnssd/reply.rb', line 64

def protocol
  raise TypeError, 'no type on this reply' unless
    instance_variable_defined? :@type

  @type.split('.').last.sub '_', ''
end