Class: RUTorrent::File
- Inherits:
-
Object
- Object
- RUTorrent::File
- Defined in:
- lib/rutorrent/file.rb
Instance Attribute Summary collapse
-
#downloaded ⇒ Object
readonly
Returns the value of attribute downloaded.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#priority ⇒ Object
Returns the value of attribute priority.
-
#size ⇒ Object
readonly
Returns the value of attribute size.
Instance Method Summary collapse
-
#initialize(torrent, index, array) ⇒ File
constructor
A new instance of File.
Constructor Details
#initialize(torrent, index, array) ⇒ File
Returns a new instance of File.
5 6 7 8 9 |
# File 'lib/rutorrent/file.rb', line 5 def initialize(torrent, index, array) @torrent = torrent @index = index @name, @size, @downloaded, @priority = array end |
Instance Attribute Details
#downloaded ⇒ Object (readonly)
Returns the value of attribute downloaded.
3 4 5 |
# File 'lib/rutorrent/file.rb', line 3 def downloaded @downloaded end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/rutorrent/file.rb', line 3 def name @name end |
#priority ⇒ Object
Returns the value of attribute priority.
3 4 5 |
# File 'lib/rutorrent/file.rb', line 3 def priority @priority end |
#size ⇒ Object (readonly)
Returns the value of attribute size.
3 4 5 |
# File 'lib/rutorrent/file.rb', line 3 def size @size end |