Class: QuartzTorrent::PieceManagerRequestMetadata

Inherits:
Object
  • Object
show all
Defined in:
lib/quartz_torrent/piecemanagerrequestmetadata.rb

Overview

Metadata associated with outstanding requests to the PieceManager (asynchronous IO management).

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dataObject

Returns the value of attribute data.



10
11
12
# File 'lib/quartz_torrent/piecemanagerrequestmetadata.rb', line 10

def data
  @data
end

#typeObject

Returns the value of attribute type.



9
10
11
# File 'lib/quartz_torrent/piecemanagerrequestmetadata.rb', line 9

def type
  @type
end