Class: TorrentFinder::Adapters::Adapter

Inherits:
Object
  • Object
show all
Defined in:
lib/torrent-finder/adapters.rb

Direct Known Subclasses

EztvAdapter, PopgoAdapter

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.inherited(c) ⇒ Object



31
32
33
# File 'lib/torrent-finder/adapters.rb', line 31

def self.inherited(c)
  Registry.register(c)
end

Instance Method Details

#list(page = 0) ⇒ Object

list recently available torrent



22
23
24
# File 'lib/torrent-finder/adapters.rb', line 22

def list(page=0)
  []
end

#nameObject

name of the adapter



17
18
19
# File 'lib/torrent-finder/adapters.rb', line 17

def name
  "adapter"
end

#search(terms) ⇒ Object

search and return available torrent



27
28
29
# File 'lib/torrent-finder/adapters.rb', line 27

def search(terms)
  []
end