Class: PDTP::ChunkInfo::FileStats
- Inherits:
-
Object
- Object
- PDTP::ChunkInfo::FileStats
- Defined in:
- lib/pdtp/server/client_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.
100 101 102 103 104 105 106 |
# File 'lib/pdtp/server/client_info.rb', line 100 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.
98 99 100 |
# File 'lib/pdtp/server/client_info.rb', line 98 def chunks_provided @chunks_provided end |
#chunks_requested ⇒ Object
Returns the value of attribute chunks_requested.
97 98 99 |
# File 'lib/pdtp/server/client_info.rb', line 97 def chunks_requested @chunks_requested end |
#chunks_transferring ⇒ Object
Returns the value of attribute chunks_transferring.
98 99 100 |
# File 'lib/pdtp/server/client_info.rb', line 98 def chunks_transferring @chunks_transferring end |
#file_chunks ⇒ Object
Returns the value of attribute file_chunks.
97 98 99 |
# File 'lib/pdtp/server/client_info.rb', line 97 def file_chunks @file_chunks end |
#url ⇒ Object
Returns the value of attribute url.
97 98 99 |
# File 'lib/pdtp/server/client_info.rb', line 97 def url @url end |