Class: AhlScraper::PlayerDataFetcher
- Inherits:
-
Object
- Object
- AhlScraper::PlayerDataFetcher
- Defined in:
- lib/ahl_scraper/fetchers/player_data_fetcher.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(player_id) ⇒ PlayerDataFetcher
constructor
A new instance of PlayerDataFetcher.
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
#call ⇒ Object
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 |