Sha256: 31d031a3090dcdcb901363fad262be51b9965d6bc980a7f4e3d99c39f1c5eb87

Contents?: true

Size: 930 Bytes

Versions: 119

Compression:

Stored size: 930 Bytes

Contents

module Sportradar
  module Api
    class Football::StatPack::Fumbles < Football::StatPack
      attr_accessor :response, :fumbles, :lost_fumbles, :own_rec, :own_rec_yards, :opp_rec, :opp_rec_yards, :out_of_bounds, :forced_fumbles, :own_rec_tds, :opp_rec_tds, :ez_rec_tds

      def set_stats
        @response       = response[1] if response.is_a? Array
        @fumbles        = response["fumbles"]
        @lost_fumbles   = response["lost_fumbles"]
        @own_rec        = response["own_rec"]
        @own_rec_yards  = response["own_rec_yards"]
        @opp_rec        = response["opp_rec"]
        @opp_rec_yards  = response["opp_rec_yards"]
        @out_of_bounds  = response["out_of_bounds"]
        @forced_fumbles = response["forced_fumbles"]
        @own_rec_tds    = response["own_rec_tds"]
        @opp_rec_tds    = response["opp_rec_tds"]
        @ez_rec_tds     = response["ez_rec_tds"]
      end
    end

  end
end

Version data entries

119 entries across 119 versions & 1 rubygems

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