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

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

Constant Summary collapse

TypeValue =
14

Constants inherited from Resolv::DNS::Resource

ClassHash, ClassInsensitiveTypes, ClassValue

Instance Attribute Summary collapse

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.



1560
1561
1562
1563
# File 'lib/resolv.rb', line 1560

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

Instance Attribute Details

#emailbxObject (readonly)

Returns the value of attribute emailbx



1564
1565
1566
# File 'lib/resolv.rb', line 1564

def emailbx
  @emailbx
end

#rmailbxObject (readonly)

Returns the value of attribute rmailbx



1564
1565
1566
# File 'lib/resolv.rb', line 1564

def rmailbx
  @rmailbx
end

Class Method Details

.decode_rdata(msg) ⇒ Object



1571
1572
1573
1574
1575
# File 'lib/resolv.rb', line 1571

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



1566
1567
1568
1569
# File 'lib/resolv.rb', line 1566

def encode_rdata(msg)
  msg.put_name(@rmailbx)
  msg.put_name(@emailbx)
end