Sha256: f078aa4574b5e230454ef902ecf21fd3ee5e722be097385968fea2b23a6db662

Contents?: true

Size: 757 Bytes

Versions: 2

Compression:

Stored size: 757 Bytes

Contents

# frozen_string_literal: true

require_relative 'fetchers/base'
require_relative 'parsers/base'

module Pokeedex # :nodoc:
  module Pokemon # :nodoc:
    module Scrapper # :nodoc:
      ##
      # Base class for the Pokemon scrapper. It holds the methods to crawl the Pokemon data from the Pokemon website
      class Base
        ##
        # The base URI to crawl the Pokemon data
        BASE_URI = 'https://www.pokemon.com/el/pokedex'

        ##
        # Crawl the Pokemon data from the Pokemon website
        def crawl
          raise NotImplementedError
        end

        private

        def parser
          raise NotImplementedError
        end

        def fetcher
          raise NotImplementedError
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pokeedex-0.1.5 lib/pokeedex/pokemon/scrapper/base.rb
pokeedex-0.1.0 lib/pokeedex/pokemon/scrapper/base.rb