Class: Fargo::Supports::Downloads::Download
- Inherits:
-
Struct
- Object
- Struct
- Fargo::Supports::Downloads::Download
- Defined in:
- lib/fargo/supports/downloads.rb
Instance Attribute Summary collapse
-
#file ⇒ Object
Returns the value of attribute file.
-
#nick ⇒ Object
Returns the value of attribute nick.
-
#offset ⇒ Object
Returns the value of attribute offset.
-
#percent ⇒ Object
Returns the value of attribute percent.
-
#size ⇒ Object
Returns the value of attribute size.
-
#status ⇒ Object
Returns the value of attribute status.
-
#tth ⇒ Object
Returns the value of attribute tth.
Instance Method Summary collapse
Instance Attribute Details
#file ⇒ Object
Returns the value of attribute file
6 7 8 |
# File 'lib/fargo/supports/downloads.rb', line 6 def file @file end |
#nick ⇒ Object
Returns the value of attribute nick
6 7 8 |
# File 'lib/fargo/supports/downloads.rb', line 6 def nick @nick end |
#offset ⇒ Object
Returns the value of attribute offset
6 7 8 |
# File 'lib/fargo/supports/downloads.rb', line 6 def offset @offset end |
#percent ⇒ Object
Returns the value of attribute percent.
7 8 9 |
# File 'lib/fargo/supports/downloads.rb', line 7 def percent @percent end |
#size ⇒ Object
Returns the value of attribute size
6 7 8 |
# File 'lib/fargo/supports/downloads.rb', line 6 def size @size end |
#status ⇒ Object
Returns the value of attribute status.
7 8 9 |
# File 'lib/fargo/supports/downloads.rb', line 7 def status @status end |
#tth ⇒ Object
Returns the value of attribute tth
6 7 8 |
# File 'lib/fargo/supports/downloads.rb', line 6 def tth @tth end |
Instance Method Details
#file_list? ⇒ Boolean
9 10 11 |
# File 'lib/fargo/supports/downloads.rb', line 9 def file_list? file == 'files.xml.bz2' end |