Class: Net::DNS::RR::SRV
- Inherits:
-
Net::DNS::RR
- Object
- Net::DNS::RR
- Net::DNS::RR::SRV
- Defined in:
- lib/net/dns/rr/srv.rb
Overview
RR type SRV (RFC2052) A DNS RR for specifying the location of services (DNS SRV), contains the location of the server(s) for a specific protocol and domain (like a more general form of MX).
Constant Summary
Constants inherited from Net::DNS::RR
Constants included from Names
Instance Attribute Summary collapse
-
#host ⇒ Object
readonly
Returns the value of attribute host.
-
#port ⇒ Object
readonly
Returns the value of attribute port.
-
#priority ⇒ Object
readonly
Returns the value of attribute priority.
-
#weight ⇒ Object
readonly
Returns the value of attribute weight.
Instance Method Summary collapse
-
#value ⇒ Object
Gets the standardized value for this record, represented by the value of
port
,priority
,weight
, andhost
.
Methods inherited from Net::DNS::RR
#cls, #comp_data, #data, #initialize, #inspect, #name, parse, parse_packet, #rdata, #to_a, #to_s, #ttl, #type
Methods included from Names
#dn_comp, #dn_expand, #names_array, #pack_name, #valid?
Constructor Details
This class inherits a constructor from Net::DNS::RR
Instance Attribute Details
#host ⇒ Object (readonly)
Returns the value of attribute host.
13 14 15 |
# File 'lib/net/dns/rr/srv.rb', line 13 def host @host end |
#port ⇒ Object (readonly)
Returns the value of attribute port.
13 14 15 |
# File 'lib/net/dns/rr/srv.rb', line 13 def port @port end |
#priority ⇒ Object (readonly)
Returns the value of attribute priority.
13 14 15 |
# File 'lib/net/dns/rr/srv.rb', line 13 def priority @priority end |
#weight ⇒ Object (readonly)
Returns the value of attribute weight.
13 14 15 |
# File 'lib/net/dns/rr/srv.rb', line 13 def weight @weight end |
Instance Method Details
#value ⇒ Object
Gets the standardized value for this record, represented by the value of port
, priority
, weight
, and host
.
Returns a String.
20 21 22 |
# File 'lib/net/dns/rr/srv.rb', line 20 def value "#{port} #{priority} #{weight} #{host}" end |