Method: Fenopy::Torrent#initialize

Defined in:
lib/fenopy/torrent.rb

#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(options)
	puts options.inspect
	self.name 		= options['name']
	self.size 		= options['size']
	self.page 		= options['page']
	self.url 			= options['torrent']
	self.magnet 	= options['magnet']
	self.hash 		= options['hash']
	self.category = options['category']
	self.seeders  = options['seeder']
	self.leechers = options['leecher']
end