Sha256: f6413b7673150f2febffdb437b545c1d81ccb94b67d759f3131cb863c2306c7f

Contents?: true

Size: 607 Bytes

Versions: 4

Compression:

Stored size: 607 Bytes

Contents

module Sportradar
  module Api
    module Basketball
      class FreeThrowMiss < ShotMiss
        def base_key
          "freethrow"
        end
        def display_type
          'FT Make'
        end
        def free_throw_type
          @free_throw_type ||= @statistics.dig(base_key, "free_throw_type")
        end
        def made?
          false
        end
        def player_id
          @player_id ||= @statistics&.dig(base_key, "player", "id") # safe operator is specifically for lane violations, which have no player_id and should not be assigned a player
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sportradar-api-0.9.36 lib/sportradar/api/basketball/plays/free_throw_miss.rb
sportradar-api-0.9.35 lib/sportradar/api/basketball/plays/free_throw_miss.rb
sportradar-api-0.9.34 lib/sportradar/api/basketball/plays/free_throw_miss.rb
sportradar-api-0.9.33 lib/sportradar/api/basketball/plays/free_throw_miss.rb