Class: Newzleech::Nfo
- Inherits:
-
Object
- Object
- Newzleech::Nfo
- Defined in:
- lib/sites/newzleech/nfo.rb
Instance Attribute Summary collapse
-
#imdb_link ⇒ Object
Returns the value of attribute imdb_link.
-
#srt ⇒ Object
Returns the value of attribute srt.
Instance Method Summary collapse
-
#initialize(url) ⇒ Nfo
constructor
A new instance of Nfo.
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
#imdb_link ⇒ Object
Returns the value of attribute imdb_link.
6 7 8 |
# File 'lib/sites/newzleech/nfo.rb', line 6 def imdb_link @imdb_link end |
#srt ⇒ Object
Returns the value of attribute srt.
6 7 8 |
# File 'lib/sites/newzleech/nfo.rb', line 6 def srt @srt end |