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

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

Overview

Mailing list or mailbox information.

Constant Summary collapse

TypeValue =

:nodoc:

14

Constants inherited from Gem::Resolv::DNS::Resource

ClassHash, ClassInsensitiveTypes, ClassValue

Instance Attribute Summary collapse

Attributes inherited from Gem::Resolv::DNS::Resource

#ttl

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Gem::Resolv::DNS::Resource

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

Constructor Details

#initialize(rmailbx, emailbx) ⇒ MINFO

Returns a new instance of MINFO.



2387
2388
2389
2390
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 2387

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.



2400
2401
2402
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 2400

def emailbx
  @emailbx
end

#rmailbxObject (readonly)

Domain name responsible for this mail list or mailbox.



2395
2396
2397
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 2395

def rmailbx
  @rmailbx
end

Class Method Details

.decode_rdata(msg) ⇒ Object

:nodoc:



2407
2408
2409
2410
2411
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 2407

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:



2402
2403
2404
2405
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 2402

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