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