Class: Newzleech::Nfo

Inherits:
Object
  • Object
show all
Defined in:
lib/sites/newzleech/nfo.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url) ⇒ Nfo

Returns a new instance of Nfo.



8
9
10
11
12
13
14
# File 'lib/sites/newzleech/nfo.rb', line 8

def initialize(url)
  @nfo = open(url.gsub(/\/$/,'')).read
  @srt = []

  parse_nfo
  @srt.uniq!
end

Instance Attribute Details

Returns the value of attribute imdb_link.



6
7
8
# File 'lib/sites/newzleech/nfo.rb', line 6

def imdb_link
  @imdb_link
end

#srtObject

Returns the value of attribute srt.



6
7
8
# File 'lib/sites/newzleech/nfo.rb', line 6

def srt
  @srt
end