Class: Net::DNS::RR::SRV

Inherits:
Net::DNS::RR show all
Defined in:
lib/net/dns/rr/srv.rb

Overview


RR type SRV


Constant Summary

Constants inherited from Net::DNS::RR

RRFIXEDSZ, RR_REGEXP

Constants included from Names

Names::INT16SZ

Instance Attribute Summary collapse

Attributes inherited from Net::DNS::RR

#name, #rdata, #ttl

Method Summary

Methods inherited from Net::DNS::RR

#cls, #comp_data, #data, #initialize, #inspect, parse, parse_packet, #to_a, #to_s, #type, #value

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

#hostObject (readonly)

Returns the value of attribute host.



8
9
10
# File 'lib/net/dns/rr/srv.rb', line 8

def host
  @host
end

#portObject (readonly)

Returns the value of attribute port.



8
9
10
# File 'lib/net/dns/rr/srv.rb', line 8

def port
  @port
end

#priorityObject (readonly)

Returns the value of attribute priority.



8
9
10
# File 'lib/net/dns/rr/srv.rb', line 8

def priority
  @priority
end

#weightObject (readonly)

Returns the value of attribute weight.



8
9
10
# File 'lib/net/dns/rr/srv.rb', line 8

def weight
  @weight
end