Sha256: d38032ce5dbe151a74e43557064bea469c5d68188ee25a68e3957a8dcbf5ff1d

Contents?: true

Size: 352 Bytes

Versions: 1

Compression:

Stored size: 352 Bytes

Contents

module Ruskino33Parser
  class Premiers
    attr_accessor :url, :doc

    def initialize
      @url = 'http://www.ruskino33.ru/cgi-bin/news0004.cgi'
    end

    def premiers
      doc.search('.one_film_cut').map { |movie| Ruskino33Parser::Movie.new(movie) }
    end

    private

    def doc
      @doc ||= Ruskino33Parser.parse url
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruskino33_parser-0.1.2 lib/ruskino33_parser/premiers.rb