Class: Resolv::DNS::Requester::Sender

Inherits:
Object
  • Object
show all
Defined in:
lib/logmerge/resolv.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, data, sock, queue) ⇒ Sender

Returns a new instance of Sender.



560
561
562
563
564
565
# File 'lib/logmerge/resolv.rb', line 560

def initialize(msg, data, sock, queue)
  @msg = msg
  @data = data
  @sock = sock
  @queue = queue
end

Instance Attribute Details

#queueObject (readonly)

Returns the value of attribute queue.



566
567
568
# File 'lib/logmerge/resolv.rb', line 566

def queue
  @queue
end

Instance Method Details

#recv(msg) ⇒ Object



568
569
570
# File 'lib/logmerge/resolv.rb', line 568

def recv(msg)
  @queue.push([msg, @data])
end