Class: Resolv::DNS::Resource::MINFO

Inherits:
Resolv::DNS::Resource show all
Defined in:
lib/resolv.rb

Overview

Mailing list or mailbox information.

Constant Summary collapse

TypeValue =

:nodoc:

14

Constants inherited from Resolv::DNS::Resource

ClassHash, ClassInsensitiveTypes, ClassValue

Instance Attribute Summary collapse

Attributes inherited from Resolv::DNS::Resource

#ttl

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Resolv::DNS::Resource

#==, #eql?, get_class, #hash

Constructor Details

#initialize(rmailbx, emailbx) ⇒ MINFO

Returns a new instance of MINFO.



1675
1676
1677
1678
# File 'lib/resolv.rb', line 1675

def initialize(rmailbx, emailbx)
  @rmailbx = rmailbx
  @emailbx = emailbx
end

Instance Attribute Details

#emailbxObject (readonly)

Mailbox to use for error messages related to the mail list or mailbox.



1688
1689
1690
# File 'lib/resolv.rb', line 1688

def emailbx
  @emailbx
end

#rmailbxObject (readonly)

Domain name responsible for this mail list or mailbox.



1683
1684
1685
# File 'lib/resolv.rb', line 1683

def rmailbx
  @rmailbx
end

Class Method Details

.decode_rdata(msg) ⇒ Object

:nodoc:



1695
1696
1697
1698
1699
# File 'lib/resolv.rb', line 1695

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:



1690
1691
1692
1693
# File 'lib/resolv.rb', line 1690

def encode_rdata(msg) # :nodoc:
  msg.put_name(@rmailbx)
  msg.put_name(@emailbx)
end