Sha256: 2d6a87fe926e27748dcec274ad81aba737b86b4f5ee4b2a8130880f0c434dbe3

Contents?: true

Size: 567 Bytes

Versions: 1

Compression:

Stored size: 567 Bytes

Contents

require 'nokogiri'
require 'httparty'
require 'parallel'

require 'simple/scraper/version'
require 'simple/scraper/configuration'
require 'simple/scraper/finder'
require 'simple/scraper/parser'

module Simple
  module Scraper
    class << self
      attr_writer :configuration, :logger
    end

    def self.configuration
      @configuration ||= Configuration.new
    end

    def self.reset
      @configuration = Configuration.new
    end

    def self.configure
      yield(configuration)
    end

    def self.logger
      configuration.logger
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
simple-scraper-1.0.0 lib/simple/scraper.rb