Class: AhlScraper::PlayerDataFetcher

Inherits:
Object
  • Object
show all
Defined in:
lib/ahl_scraper/fetchers/player_data_fetcher.rb

Instance Method Summary collapse

Constructor Details

#initialize(player_id) ⇒ PlayerDataFetcher

Returns a new instance of PlayerDataFetcher.



5
6
7
# File 'lib/ahl_scraper/fetchers/player_data_fetcher.rb', line 5

def initialize(player_id)
  @player_id = player_id
end

Instance Method Details

#callObject



9
10
11
# File 'lib/ahl_scraper/fetchers/player_data_fetcher.rb', line 9

def call
  JSON.parse(player_data_without_bio, symbolize_names: true)
end