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

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

Overview

Mailing list or mailbox information.

Constant Summary

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

- (MINFO) initialize(rmailbx, emailbx)

A new instance of MINFO



1798
1799
1800
1801
# File 'lib/resolv.rb', line 1798

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

Instance Attribute Details

- (Object) emailbx (readonly)

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



1811
1812
1813
# File 'lib/resolv.rb', line 1811

def emailbx
  @emailbx
end

- (Object) rmailbx (readonly)

Domain name responsible for this mail list or mailbox.



1806
1807
1808
# File 'lib/resolv.rb', line 1806

def rmailbx
  @rmailbx
end

Class Method Details

+ (Object) decode_rdata(msg)

:nodoc:



1818
1819
1820
1821
1822
# File 'lib/resolv.rb', line 1818

def self.decode_rdata(msg) # :nodoc:
  rmailbx = msg.get_string
  emailbx = msg.get_string
  return self.new(rmailbx, emailbx)
end

Instance Method Details

- (Object) encode_rdata(msg)

:nodoc:



1813
1814
1815
1816
# File 'lib/resolv.rb', line 1813

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