Class: Net::DNS::MDNSSD::RegisterReply

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, type, domain) ⇒ RegisterReply

Returns a new instance of RegisterReply.



146
147
148
149
150
# File 'lib/net/dns/mdns-sd.rb', line 146

def initialize(name, type, domain)
  @interface = nil
  @fullname = (DNS::Name.create(name) << type << domain).to_s
  @name, @type, @domain = name, type, domain
end

Instance Attribute Details

#domainObject (readonly)

Returns the value of attribute domain.



145
146
147
# File 'lib/net/dns/mdns-sd.rb', line 145

def domain
  @domain
end

#fullnameObject (readonly)

Returns the value of attribute fullname.



145
146
147
# File 'lib/net/dns/mdns-sd.rb', line 145

def fullname
  @fullname
end

#interfaceObject (readonly)

Returns the value of attribute interface.



145
146
147
# File 'lib/net/dns/mdns-sd.rb', line 145

def interface
  @interface
end

#nameObject (readonly)

Returns the value of attribute name.



145
146
147
# File 'lib/net/dns/mdns-sd.rb', line 145

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type.



145
146
147
# File 'lib/net/dns/mdns-sd.rb', line 145

def type
  @type
end