Class: Net::DNS::MDNSSD::BrowseReply

Inherits:
Object
  • Object
show all
Defined in:
lib/net/dns/mdns-sd.rb

Overview

A reply yielded by #browse, see MDNSSD for a description of the attributes.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(an) ⇒ BrowseReply

:nodoc:



59
60
61
62
63
64
# File 'lib/net/dns/mdns-sd.rb', line 59

def initialize(an) # :nodoc:
  @interface = nil
  @fullname = an.name.to_s
  @domain, @type, @name = MDNSSD::Util.parse_name(an.data.name)
  @flags = an.ttl
end

Instance Attribute Details

#domainObject (readonly)

Returns the value of attribute domain.



58
59
60
# File 'lib/net/dns/mdns-sd.rb', line 58

def domain
  @domain
end

#flagsObject (readonly)

Returns the value of attribute flags.



58
59
60
# File 'lib/net/dns/mdns-sd.rb', line 58

def flags
  @flags
end

#fullnameObject (readonly)

Returns the value of attribute fullname.



58
59
60
# File 'lib/net/dns/mdns-sd.rb', line 58

def fullname
  @fullname
end

#interfaceObject (readonly)

Returns the value of attribute interface.



58
59
60
# File 'lib/net/dns/mdns-sd.rb', line 58

def interface
  @interface
end

#nameObject (readonly)

Returns the value of attribute name.



58
59
60
# File 'lib/net/dns/mdns-sd.rb', line 58

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type.



58
59
60
# File 'lib/net/dns/mdns-sd.rb', line 58

def type
  @type
end