Class: RUTorrent::Label

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(array) ⇒ Label

Returns a new instance of Label.



5
6
7
# File 'lib/rutorrent/label.rb', line 5

def initialize(array)
  @label, @torrent_count = array
end

Instance Attribute Details

#labelObject (readonly)

Returns the value of attribute label.



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

def label
  @label
end

#torrent_countObject (readonly)

Returns the value of attribute torrent_count.



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

def torrent_count
  @torrent_count
end