Class: Fargo::Supports::Downloads::Download

Inherits:
Struct
  • Object
show all
Defined in:
lib/fargo/supports/downloads.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#fileObject

Returns the value of attribute file

Returns:

  • (Object)

    the current value of file



6
7
8
# File 'lib/fargo/supports/downloads.rb', line 6

def file
  @file
end

#nickObject

Returns the value of attribute nick

Returns:

  • (Object)

    the current value of nick



6
7
8
# File 'lib/fargo/supports/downloads.rb', line 6

def nick
  @nick
end

#offsetObject

Returns the value of attribute offset

Returns:

  • (Object)

    the current value of offset



6
7
8
# File 'lib/fargo/supports/downloads.rb', line 6

def offset
  @offset
end

#percentObject

Returns the value of attribute percent.



7
8
9
# File 'lib/fargo/supports/downloads.rb', line 7

def percent
  @percent
end

#sizeObject

Returns the value of attribute size

Returns:

  • (Object)

    the current value of size



6
7
8
# File 'lib/fargo/supports/downloads.rb', line 6

def size
  @size
end

#statusObject

Returns the value of attribute status.



7
8
9
# File 'lib/fargo/supports/downloads.rb', line 7

def status
  @status
end

#tthObject

Returns the value of attribute tth

Returns:

  • (Object)

    the current value of tth



6
7
8
# File 'lib/fargo/supports/downloads.rb', line 6

def tth
  @tth
end

Instance Method Details

#file_list?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/fargo/supports/downloads.rb', line 9

def file_list?
  file == 'files.xml.bz2'
end