Class: Nzbs::Nfo

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(agent, url) ⇒ Nfo

Returns a new instance of Nfo.



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

def initialize(agent, url)
  @page = agent.get(url.gsub(/\/$/,''))
  @srt = []

  parse_nfo
  @srt.uniq!
end

Instance Attribute Details

Returns the value of attribute imdb_link.



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

def imdb_link
  @imdb_link
end

#srtObject

Returns the value of attribute srt.



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

def srt
  @srt
end