Class: QuartzTorrent::PieceManagerRequestMetadata
- Inherits:
-
Object
- Object
- QuartzTorrent::PieceManagerRequestMetadata
- Defined in:
- lib/quartz_torrent/piecemanagerrequestmetadata.rb
Overview
Metadata associated with outstanding requests to the PieceManager (asynchronous IO management).
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, data) ⇒ PieceManagerRequestMetadata
constructor
A new instance of PieceManagerRequestMetadata.
Constructor Details
#initialize(type, data) ⇒ PieceManagerRequestMetadata
Returns a new instance of PieceManagerRequestMetadata.
5 6 7 8 |
# File 'lib/quartz_torrent/piecemanagerrequestmetadata.rb', line 5 def initialize(type, data) @type = type @data = data end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
10 11 12 |
# File 'lib/quartz_torrent/piecemanagerrequestmetadata.rb', line 10 def data @data end |
#type ⇒ Object
Returns the value of attribute type.
9 10 11 |
# File 'lib/quartz_torrent/piecemanagerrequestmetadata.rb', line 9 def type @type end |