Class: AhlScraper::TeamRosterDataFetcher

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

Instance Method Summary collapse

Constructor Details

#initialize(team_id, season_id) ⇒ TeamRosterDataFetcher

Returns a new instance of TeamRosterDataFetcher.



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

def initialize(team_id, season_id)
  @team_id = team_id
  @season_id = season_id
end

Instance Method Details

#callObject



10
11
12
13
14
15
# File 'lib/ahl_scraper/fetchers/team_roster_data_fetcher.rb', line 10

def call
  fetch_roster_data
  merge_positional_data
  merge_roster_data
  merge_all_data
end