Class: PDTP::Server::ChunkInfo::FileStats

Inherits:
Object
  • Object
show all
Defined in:
lib/pdtp/server/chunk_info.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeFileStats

Returns a new instance of FileStats.



94
95
96
97
98
99
100
# File 'lib/pdtp/server/chunk_info.rb', line 94

def initialize
  @url = ""
  @file_chunks = 0
  @chunks_requested = 0
  @chunks_provided = 0
  @chunks_transferring = 0
end

Instance Attribute Details

#chunks_providedObject

Returns the value of attribute chunks_provided.



92
93
94
# File 'lib/pdtp/server/chunk_info.rb', line 92

def chunks_provided
  @chunks_provided
end

#chunks_requestedObject

Returns the value of attribute chunks_requested.



91
92
93
# File 'lib/pdtp/server/chunk_info.rb', line 91

def chunks_requested
  @chunks_requested
end

#chunks_transferringObject

Returns the value of attribute chunks_transferring.



92
93
94
# File 'lib/pdtp/server/chunk_info.rb', line 92

def chunks_transferring
  @chunks_transferring
end

#file_chunksObject

Returns the value of attribute file_chunks.



91
92
93
# File 'lib/pdtp/server/chunk_info.rb', line 91

def file_chunks
  @file_chunks
end

#urlObject

Returns the value of attribute url.



91
92
93
# File 'lib/pdtp/server/chunk_info.rb', line 91

def url
  @url
end