Class: DNSSD::Reply::Domain

Inherits:
DNSSD::Reply show all
Defined in:
lib/dnssd/reply/domain.rb

Overview

Returned by DNSSD::Service#enumerate_domains

Instance Attribute Summary collapse

Attributes inherited from DNSSD::Reply

#flags, #interface, #service

Instance Method Summary collapse

Methods inherited from DNSSD::Reply

#fullname, #inspect, #interface_name, #protocol, #service_name, #set_fullname, #set_names

Constructor Details

#initialize(service, flags, interface, domain) ⇒ Domain

Creates a new Browse, called internally by DNSSD::Service#enumerate_domains



15
16
17
18
19
# File 'lib/dnssd/reply/domain.rb', line 15

def initialize(service, flags, interface, domain)
  super service, flags, interface

  @domain = domain
end

Instance Attribute Details

#domainObject (readonly)

A domain for registration or browsing



9
10
11
# File 'lib/dnssd/reply/domain.rb', line 9

def domain
  @domain
end