Sha256: a04c6dfc2282bf543d0c96d7074f6499a16f1e55f90771d33c95c7ce4f1cb27f

Contents?: true

Size: 744 Bytes

Versions: 7

Compression:

Stored size: 744 Bytes

Contents

module Sportradar
  module Api
    class Football::StatPack::Rushing < Football::StatPack
      attr_accessor :avg_yards, :yards, :touchdowns, :longest, :longest_touchdown, :attempts, :tlost, :tlost_yards, :redzone_attempts

      def set_stats
        @avg_yards         = response["avg_yards"]
        @yards             = response["yards"]
        @touchdowns        = response["touchdowns"]
        @longest           = response["longest"]
        @longest_touchdown = response["longest_touchdown"]
        @attempts          = response["attempts"]
        @tlost             = response["tlost"]
        @tlost_yards       = response["tlost_yards"]
        @redzone_attempts  = response["redzone_attempts"]
      end
    end
    
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sportradar-api-0.1.38 lib/sportradar/api/football/stat_pack/rushing.rb
sportradar-api-0.1.37 lib/sportradar/api/football/stat_pack/rushing.rb
sportradar-api-0.1.36 lib/sportradar/api/football/stat_pack/rushing.rb
sportradar-api-0.1.35 lib/sportradar/api/football/stat_pack/rushing.rb
sportradar-api-0.1.34 lib/sportradar/api/football/stat_pack/rushing.rb
sportradar-api-0.1.33 lib/sportradar/api/football/stat_pack/rushing.rb
sportradar-api-0.1.32 lib/sportradar/api/football/stat_pack/rushing.rb