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

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

Constant Summary collapse

TypeValue =
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.



1522
1523
1524
1525
# File 'lib/logmerge/resolv.rb', line 1522

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

Instance Attribute Details

#emailbxObject (readonly)

Returns the value of attribute emailbx.



1526
1527
1528
# File 'lib/logmerge/resolv.rb', line 1526

def emailbx
  @emailbx
end

#rmailbxObject (readonly)

Returns the value of attribute rmailbx.



1526
1527
1528
# File 'lib/logmerge/resolv.rb', line 1526

def rmailbx
  @rmailbx
end

Class Method Details

.decode_rdata(msg) ⇒ Object



1533
1534
1535
1536
1537
# File 'lib/logmerge/resolv.rb', line 1533

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



1528
1529
1530
1531
# File 'lib/logmerge/resolv.rb', line 1528

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