beneggett / sportradar-api

19 stars 13 forks source link

improves NFL::Season, NFL::Team, NFL::Game #7

Closed phoffer closed 7 years ago

phoffer commented 7 years ago

This adds #divisions and #teams functionality to NFL::Season.

Additionally, we add the following attributes on NFL::Team: :wins, :losses, :ties, :win_pct, :rank.

These attributes allow for sorting teams inside a division to generate standings.

Additional changes for NFL::Game were needed for when the game is retrieved directly via API, instead of being instantiated via response of another API call. The data structure is slightly different and handled appropriately.