Class: RUTorrent::File

Inherits:
Object
  • Object
show all
Defined in:
lib/rutorrent/file.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#downloadedObject (readonly)

Returns the value of attribute downloaded


3
4
5
# File 'lib/rutorrent/file.rb', line 3

def downloaded
  @downloaded
end

#nameObject (readonly)

Returns the value of attribute name


3
4
5
# File 'lib/rutorrent/file.rb', line 3

def name
  @name
end

#priorityObject

Returns the value of attribute priority


3
4
5
# File 'lib/rutorrent/file.rb', line 3

def priority
  @priority
end

#sizeObject (readonly)

Returns the value of attribute size


3
4
5
# File 'lib/rutorrent/file.rb', line 3

def size
  @size
end