lib/sportradar/api/nfl/play_statistics.rb in sportradar-api-0.9.13 vs lib/sportradar/api/nfl/play_statistics.rb in sportradar-api-0.9.14

- old
+ new

@@ -143,9 +143,10 @@ end class Nfl::PlayPuntStatistics < Data attr_accessor :attempt, :downed, :faircatch, :inside_20, :out_of_bounds, :touchback, :yards, :nullified, :team, :player def initialize(data) + data = data.first if data.is_a?(Array) @attempt = data['attempt'] @downed = data['downed'] @inside_20 = data['inside_20'] @out_of_bounds = data['out_of_bounds'] @touchback = data['touchback']