Class: Net::DNS::MDNSSD::RegisterReply
- Inherits:
-
Object
- Object
- Net::DNS::MDNSSD::RegisterReply
- 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
-
#domain ⇒ Object
readonly
Returns the value of attribute domain.
-
#fullname ⇒ Object
readonly
Returns the value of attribute fullname.
-
#interface ⇒ Object
readonly
Returns the value of attribute interface.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(name, type, domain) ⇒ RegisterReply
constructor
A new instance of RegisterReply.
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
#domain ⇒ Object (readonly)
Returns the value of attribute domain.
145 146 147 |
# File 'lib/net/dns/mdns-sd.rb', line 145 def domain @domain end |
#fullname ⇒ Object (readonly)
Returns the value of attribute fullname.
145 146 147 |
# File 'lib/net/dns/mdns-sd.rb', line 145 def fullname @fullname end |
#interface ⇒ Object (readonly)
Returns the value of attribute interface.
145 146 147 |
# File 'lib/net/dns/mdns-sd.rb', line 145 def interface @interface end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
145 146 147 |
# File 'lib/net/dns/mdns-sd.rb', line 145 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
145 146 147 |
# File 'lib/net/dns/mdns-sd.rb', line 145 def type @type end |