Class: QuartzTorrent::ReadRequestMetadata
- Inherits:
-
Object
- Object
- QuartzTorrent::ReadRequestMetadata
- Defined in:
- lib/quartz_torrent/peerclient.rb
Overview
Extra metadata stored in a PieceManagerRequestMetadata specific to read requests.
Instance Attribute Summary collapse
-
#peer ⇒ Object
Returns the value of attribute peer.
-
#requestMsg ⇒ Object
Returns the value of attribute requestMsg.
Instance Method Summary collapse
-
#initialize(peer, requestMsg) ⇒ ReadRequestMetadata
constructor
A new instance of ReadRequestMetadata.
Constructor Details
#initialize(peer, requestMsg) ⇒ ReadRequestMetadata
Returns a new instance of ReadRequestMetadata.
24 25 26 27 |
# File 'lib/quartz_torrent/peerclient.rb', line 24 def initialize(peer, requestMsg) @peer = peer @requestMsg = requestMsg end |
Instance Attribute Details
#peer ⇒ Object
Returns the value of attribute peer.
28 29 30 |
# File 'lib/quartz_torrent/peerclient.rb', line 28 def peer @peer end |
#requestMsg ⇒ Object
Returns the value of attribute requestMsg.
29 30 31 |
# File 'lib/quartz_torrent/peerclient.rb', line 29 def requestMsg @requestMsg end |