Class: Resolv::DNS::Requester::Sender
- Inherits:
-
Object
- Object
- Resolv::DNS::Requester::Sender
- Defined in:
- lib/net/dns/resolv.rb
Overview
:nodoc:
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.
603 604 605 606 607 608 |
# File 'lib/net/dns/resolv.rb', line 603 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.
609 610 611 |
# File 'lib/net/dns/resolv.rb', line 609 def queue @queue end |
Instance Method Details
#recv(msg) ⇒ Object
611 612 613 |
# File 'lib/net/dns/resolv.rb', line 611 def recv(msg) @queue.push([msg, @data]) end |