Get NFL player data from yahoo fs api

temp_player_stats = PLAYER_STATS.clone
temp_player_stats.each do |key, value|
self[key] = player_doc.elements[value].text
end
set_bye_weeks(temp_player_stats, player_doc)

or maybe just make a class to handle this. I don't know but it doesn't look like optimal code