Sha256: cf6b79c2df84dc9e6a018db00023ef9ce73587c9394321099667f8814a74dcb2
Contents?: true
Size: 556 Bytes
Versions: 5
Compression:
Stored size: 556 Bytes
Contents
module Imdb class Episode attr_accessor :title, :synopsis, :number, :release_date def initialize(number, node, season) @number = number @node = node @season = season end def title @node.search('table tr td h3 a').innerHTML.imdb_unescape_html rescue nil end def synopsis @node.search('table tr td/text()').text rescue nil end def release_date @node.search('table tr td span strong').innerHTML.imdb_unescape_html rescue nil end end #Episode end # Imdb
Version data entries
5 entries across 5 versions & 1 rubygems