Class: PDTP::Server::ChunkInfo::FileStats
- Inherits:
-
Object
- Object
- PDTP::Server::ChunkInfo::FileStats
- Defined in:
- lib/pdtp/server/chunk_info.rb
Instance Attribute Summary collapse
-
#chunks_provided ⇒ Object
Returns the value of attribute chunks_provided.
-
#chunks_requested ⇒ Object
Returns the value of attribute chunks_requested.
-
#chunks_transferring ⇒ Object
Returns the value of attribute chunks_transferring.
-
#file_chunks ⇒ Object
Returns the value of attribute file_chunks.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize ⇒ FileStats
constructor
A new instance of FileStats.
Constructor Details
#initialize ⇒ FileStats
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_provided ⇒ Object
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_requested ⇒ Object
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_transferring ⇒ Object
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_chunks ⇒ Object
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 |
#url ⇒ Object
Returns the value of attribute url.
91 92 93 |
# File 'lib/pdtp/server/chunk_info.rb', line 91 def url @url end |