Class: RUTorrent::Label
- Inherits:
-
Object
- Object
- RUTorrent::Label
- Defined in:
- lib/rutorrent/label.rb
Instance Attribute Summary collapse
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#torrent_count ⇒ Object
readonly
Returns the value of attribute torrent_count.
Instance Method Summary collapse
-
#initialize(array) ⇒ Label
constructor
A new instance of Label.
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
#label ⇒ Object (readonly)
Returns the value of attribute label.
3 4 5 |
# File 'lib/rutorrent/label.rb', line 3 def label @label end |
#torrent_count ⇒ Object (readonly)
Returns the value of attribute torrent_count.
3 4 5 |
# File 'lib/rutorrent/label.rb', line 3 def torrent_count @torrent_count end |