Class: Fenopy::Torrent
- Inherits:
-
Object
- Object
- Fenopy::Torrent
- Defined in:
- lib/fenopy/torrent.rb
Instance Attribute Summary collapse
-
#category ⇒ Object
Returns the value of attribute category.
-
#hash ⇒ Object
Returns the value of attribute hash.
-
#leechers ⇒ Object
Returns the value of attribute leechers.
-
#magnet ⇒ Object
Returns the value of attribute magnet.
-
#name ⇒ Object
Returns the value of attribute name.
-
#page ⇒ Object
Returns the value of attribute page.
-
#seeders ⇒ Object
Returns the value of attribute seeders.
-
#size ⇒ Object
Returns the value of attribute size.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(options) ⇒ Torrent
constructor
A new instance of Torrent.
Constructor Details
#initialize(options) ⇒ Torrent
Returns a new instance of Torrent.
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/fenopy/torrent.rb', line 5 def initialize() puts .inspect self.name = ['name'] self.size = ['size'] self.page = ['page'] self.url = ['torrent'] self.magnet = ['magnet'] self.hash = ['hash'] self.category = ['category'] self.seeders = ['seeder'] self.leechers = ['leecher'] end |
Instance Attribute Details
#category ⇒ Object
Returns the value of attribute category.
3 4 5 |
# File 'lib/fenopy/torrent.rb', line 3 def category @category end |
#hash ⇒ Object
Returns the value of attribute hash.
3 4 5 |
# File 'lib/fenopy/torrent.rb', line 3 def hash @hash end |
#leechers ⇒ Object
Returns the value of attribute leechers.
3 4 5 |
# File 'lib/fenopy/torrent.rb', line 3 def leechers @leechers end |
#magnet ⇒ Object
Returns the value of attribute magnet.
3 4 5 |
# File 'lib/fenopy/torrent.rb', line 3 def magnet @magnet end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/fenopy/torrent.rb', line 3 def name @name end |
#page ⇒ Object
Returns the value of attribute page.
3 4 5 |
# File 'lib/fenopy/torrent.rb', line 3 def page @page end |
#seeders ⇒ Object
Returns the value of attribute seeders.
3 4 5 |
# File 'lib/fenopy/torrent.rb', line 3 def seeders @seeders end |
#size ⇒ Object
Returns the value of attribute size.
3 4 5 |
# File 'lib/fenopy/torrent.rb', line 3 def size @size end |
#url ⇒ Object
Returns the value of attribute url.
3 4 5 |
# File 'lib/fenopy/torrent.rb', line 3 def url @url end |