Class: Resolv::DNS::Requester::Sender
- Inherits:
-
Object
- Object
- Resolv::DNS::Requester::Sender
- Defined in:
- lib/logmerge/resolv.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#queue ⇒ Object
readonly
Returns the value of attribute queue.
Instance Method Summary collapse
-
#initialize(msg, data, sock, queue) ⇒ Sender
constructor
A new instance of Sender.
- #recv(msg) ⇒ Object
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
#queue ⇒ Object (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 |