A progress reporter that prints out messages about the current progress.
Methods
Attributes
| [R] | file_name | The current file name being displayed |
| [R] | progress | The current progress (0 to 100) |
| [R] | total_bytes | The total bytes in the file |
Class Public methods
new(out_stream, *args)
Link
Creates a new verbose download reporter that will display on
out_stream. The other arguments are ignored.
Instance Public methods
done()
Link
Indicates the download is complete.
fetch(file_name, total_bytes)
Link
Tells the download reporter that the file_name is being
fetched and contains total_bytes.
update(bytes)
Link
Updates the verbose download reporter for the given number of
bytes.