Sha256: 684e3b073b196922af0263ac70890325ea1165dc932f7b03175e75e10b7dea0b

Contents?: true

Size: 312 Bytes

Versions: 1

Compression:

Stored size: 312 Bytes

Contents

module HolidayScraper
  class Scraper

    DAELLIKON_FERIENPLAN_URL = 'http://www.schule-daellikon.ch/de/ferienplan/'

    def initialize(url = DAELLIKON_FERIENPLAN_URL)
      @url = url
    end

    def page
      @page ||= Nokogiri::HTML(HTTParty.get(url))
    end

    private

    attr_reader :url
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
holiday_scraper-0.1.1 lib/holiday_scraper/scraper.rb