Class: Net::DNS::MDNSSD::BrowseReply
- Inherits:
-
Object
- Object
- Net::DNS::MDNSSD::BrowseReply
- 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
-
#domain ⇒ Object
readonly
Returns the value of attribute domain.
-
#flags ⇒ Object
readonly
Returns the value of attribute flags.
-
#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(an) ⇒ BrowseReply
constructor
:nodoc:.
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
#domain ⇒ Object (readonly)
Returns the value of attribute domain.
58 59 60 |
# File 'lib/net/dns/mdns-sd.rb', line 58 def domain @domain end |
#flags ⇒ Object (readonly)
Returns the value of attribute flags.
58 59 60 |
# File 'lib/net/dns/mdns-sd.rb', line 58 def flags @flags end |
#fullname ⇒ Object (readonly)
Returns the value of attribute fullname.
58 59 60 |
# File 'lib/net/dns/mdns-sd.rb', line 58 def fullname @fullname end |
#interface ⇒ Object (readonly)
Returns the value of attribute interface.
58 59 60 |
# File 'lib/net/dns/mdns-sd.rb', line 58 def interface @interface end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
58 59 60 |
# File 'lib/net/dns/mdns-sd.rb', line 58 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
58 59 60 |
# File 'lib/net/dns/mdns-sd.rb', line 58 def type @type end |