Class: Resolv::DNS::Resource::MINFO
- Inherits:
-
Resolv::DNS::Resource
- Object
- Query
- Resolv::DNS::Resource
- Resolv::DNS::Resource::MINFO
- Defined in:
- lib/resolv.rb
Constant Summary collapse
- TypeValue =
14
Constants inherited from Resolv::DNS::Resource
ClassHash, ClassInsensitiveTypes, ClassValue
Instance Attribute Summary collapse
-
#emailbx ⇒ Object
readonly
Returns the value of attribute emailbx.
-
#rmailbx ⇒ Object
readonly
Returns the value of attribute rmailbx.
Class Method Summary collapse
Instance Method Summary collapse
- #encode_rdata(msg) ⇒ Object
-
#initialize(rmailbx, emailbx) ⇒ MINFO
constructor
A new instance of MINFO.
Methods inherited from Resolv::DNS::Resource
Constructor Details
#initialize(rmailbx, emailbx) ⇒ MINFO
Returns a new instance of MINFO.
1514 1515 1516 1517 |
# File 'lib/resolv.rb', line 1514 def initialize(rmailbx, emailbx) @rmailbx = rmailbx @emailbx = emailbx end |
Instance Attribute Details
#emailbx ⇒ Object (readonly)
Returns the value of attribute emailbx.
1518 1519 1520 |
# File 'lib/resolv.rb', line 1518 def emailbx @emailbx end |
#rmailbx ⇒ Object (readonly)
Returns the value of attribute rmailbx.
1518 1519 1520 |
# File 'lib/resolv.rb', line 1518 def rmailbx @rmailbx end |
Class Method Details
.decode_rdata(msg) ⇒ Object
1525 1526 1527 1528 1529 |
# File 'lib/resolv.rb', line 1525 def self.decode_rdata(msg) rmailbx = msg.get_string emailbx = msg.get_string return self.new(rmailbx, emailbx) end |
Instance Method Details
#encode_rdata(msg) ⇒ Object
1520 1521 1522 1523 |
# File 'lib/resolv.rb', line 1520 def encode_rdata(msg) msg.put_name(@rmailbx) msg.put_name(@emailbx) end |