Class: Resolv::DNS::Resource::MINFO
- Inherits:
-
Resolv::DNS::Resource
- Object
- Query
- Resolv::DNS::Resource
- Resolv::DNS::Resource::MINFO
- Defined in:
- lib/net/dns/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
-
.decode_rdata(msg) ⇒ Object
:nodoc:.
Instance Method Summary collapse
-
#encode_rdata(msg) ⇒ Object
:nodoc:.
-
#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.
1612 1613 1614 1615 |
# File 'lib/net/dns/resolv.rb', line 1612 def initialize(rmailbx, emailbx) @rmailbx = rmailbx @emailbx = emailbx end |
Instance Attribute Details
#emailbx ⇒ Object (readonly)
Returns the value of attribute emailbx.
1616 1617 1618 |
# File 'lib/net/dns/resolv.rb', line 1616 def emailbx @emailbx end |
#rmailbx ⇒ Object (readonly)
Returns the value of attribute rmailbx.
1616 1617 1618 |
# File 'lib/net/dns/resolv.rb', line 1616 def rmailbx @rmailbx end |
Class Method Details
.decode_rdata(msg) ⇒ Object
:nodoc:
1623 1624 1625 1626 1627 |
# File 'lib/net/dns/resolv.rb', line 1623 def self.decode_rdata(msg) # :nodoc: rmailbx = msg.get_string emailbx = msg.get_string return self.new(rmailbx, emailbx) end |
Instance Method Details
#encode_rdata(msg) ⇒ Object
:nodoc:
1618 1619 1620 1621 |
# File 'lib/net/dns/resolv.rb', line 1618 def encode_rdata(msg) # :nodoc: msg.put_name(@rmailbx) msg.put_name(@emailbx) end |