Class: AhlScraper::SeasonDataFetcher
- Inherits:
-
Object
- Object
- AhlScraper::SeasonDataFetcher
- Defined in:
- lib/ahl_scraper/fetchers/season_data_fetcher.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
5 6 7 |
# File 'lib/ahl_scraper/fetchers/season_data_fetcher.rb', line 5 def call JSON.parse(Nokogiri::HTML(URI.parse(url).open).text[5..-2], symbolize_names: true)&.dig(:seasons) end |