Sha256: 474144b7f496396811f255cdcba93115d32eeb4782150b3d99749a395ec513d4

Contents?: true

Size: 1.81 KB

Versions: 112

Compression:

Stored size: 1.81 KB

Contents

module Sportradar
  module Api
    class Football::StatPack::Defense < Football::StatPack
      attr_accessor :tackles, :assists, :combined, :sacks, :sack_yards, :interceptions, :passes_defended, :forced_fumbles, :fumble_recoveries, :qb_hits, :tloss, :tloss_yards, :safeties, :sp_tackles, :sp_assists, :sp_forced_fumbles, :sp_fumble_recoveries, :sp_blocks, :misc_tackles, :misc_assists, :misc_forced_fumbles, :misc_fumble_recoveries, :missed_tackles

      def set_stats
        @tackles                = response["tackles"]
        @assists                = response["assists"]
        @combined               = response["combined"]
        @sacks                  = response["sacks"]
        @sack_yards             = response["sack_yards"]
        @interceptions          = response["interceptions"]
        @passes_defended        = response["passes_defended"]
        @forced_fumbles         = response["forced_fumbles"]
        @fumble_recoveries      = response["fumble_recoveries"]
        @qb_hits                = response["qb_hits"]
        @tloss                  = response["tloss"]
        @tloss_yards            = response["tloss_yards"]
        @safeties               = response["safeties"]
        @sp_tackles             = response["sp_tackles"]
        @sp_assists             = response["sp_assists"]
        @sp_forced_fumbles      = response["sp_forced_fumbles"]
        @sp_fumble_recoveries   = response["sp_fumble_recoveries"]
        @sp_blocks              = response["sp_blocks"]
        @misc_tackles           = response["misc_tackles"]
        @misc_assists           = response["misc_assists"]
        @misc_forced_fumbles    = response["misc_forced_fumbles"]
        @misc_fumble_recoveries = response["misc_fumble_recoveries"]
        @missed_tackles         = response["missed_tackles"]
      end
    end

  end
end

Version data entries

112 entries across 112 versions & 1 rubygems

Version Path
sportradar-api-0.10.15 lib/sportradar/api/football/stat_pack/defense.rb
sportradar-api-0.10.14 lib/sportradar/api/football/stat_pack/defense.rb
sportradar-api-0.10.13 lib/sportradar/api/football/stat_pack/defense.rb
sportradar-api-0.10.12 lib/sportradar/api/football/stat_pack/defense.rb
sportradar-api-0.10.11 lib/sportradar/api/football/stat_pack/defense.rb
sportradar-api-0.10.10 lib/sportradar/api/football/stat_pack/defense.rb
sportradar-api-0.10.9 lib/sportradar/api/football/stat_pack/defense.rb
sportradar-api-0.10.8 lib/sportradar/api/football/stat_pack/defense.rb
sportradar-api-0.10.7 lib/sportradar/api/football/stat_pack/defense.rb
sportradar-api-0.10.6 lib/sportradar/api/football/stat_pack/defense.rb
sportradar-api-0.10.5 lib/sportradar/api/football/stat_pack/defense.rb
sportradar-api-0.10.4 lib/sportradar/api/football/stat_pack/defense.rb
sportradar-api-0.10.3 lib/sportradar/api/football/stat_pack/defense.rb
sportradar-api-0.10.2 lib/sportradar/api/football/stat_pack/defense.rb
sportradar-api-0.10.1 lib/sportradar/api/football/stat_pack/defense.rb
sportradar-api-0.10.0 lib/sportradar/api/football/stat_pack/defense.rb
sportradar-api-0.9.59 lib/sportradar/api/football/stat_pack/defense.rb
sportradar-api-0.9.58 lib/sportradar/api/football/stat_pack/defense.rb
sportradar-api-0.9.57 lib/sportradar/api/football/stat_pack/defense.rb
sportradar-api-0.9.56 lib/sportradar/api/football/stat_pack/defense.rb