Method: Pokeedex::Pokemon::Scrapper::Fetchers::Base#initialize

Defined in:
lib/pokeedex/pokemon/scrapper/fetchers/base.rb

#initialize(url:) ⇒ Base

Returns a new instance of Base.



26
27
28
29
30
# File 'lib/pokeedex/pokemon/scrapper/fetchers/base.rb', line 26

def initialize(url:)
  @url = url
  @playwright_exec = Playwright.create(playwright_cli_executable_path: 'npx playwright')
  @playwright = playwright_exec.playwright
end