Class: Fargo::Download

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Struct

#to_h

Instance Attribute Details

#fileObject

Returns the value of attribute file

Returns:

  • (Object)

    the current value of file



2
3
4
# File 'lib/fargo/supports/downloads.rb', line 2

def file
  @file
end

#nickObject

Returns the value of attribute nick

Returns:

  • (Object)

    the current value of nick



2
3
4
# File 'lib/fargo/supports/downloads.rb', line 2

def nick
  @nick
end

#offsetObject

Returns the value of attribute offset

Returns:

  • (Object)

    the current value of offset



2
3
4
# File 'lib/fargo/supports/downloads.rb', line 2

def offset
  @offset
end

#percentObject

Returns the value of attribute percent.



3
4
5
# File 'lib/fargo/supports/downloads.rb', line 3

def percent
  @percent
end

#sizeObject

Returns the value of attribute size

Returns:

  • (Object)

    the current value of size



2
3
4
# File 'lib/fargo/supports/downloads.rb', line 2

def size
  @size
end

#statusObject

Returns the value of attribute status.



3
4
5
# File 'lib/fargo/supports/downloads.rb', line 3

def status
  @status
end

#tthObject

Returns the value of attribute tth

Returns:

  • (Object)

    the current value of tth



2
3
4
# File 'lib/fargo/supports/downloads.rb', line 2

def tth
  @tth
end

Instance Method Details

#file_list?Boolean

Returns:

  • (Boolean)


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

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