lib/sportradar/api/nfl/team.rb in sportradar-api-0.1.30 vs lib/sportradar/api/nfl/team.rb in sportradar-api-0.1.31
- old
+ new
@@ -1,9 +1,11 @@
module Sportradar
module Api
class Nfl::Team < Data
attr_accessor :response, :id, :name, :alias, :game_number, :defense, :special_teams, :offense, :players, :statistics, :team_records, :player_records, :market, :franchise, :venue, :hierarchy, :coaches, :players, :used_timeouts, :remaining_timeouts, :points, :wins, :losses, :ties, :win_pct, :rank
+ alias :score :points
+
def initialize(data)
@response = data
@id = data["id"]
@name = data["name"]
@alias = data["alias"]