Class: MLB::SacFlyProbability

Inherits:
Shale::Mapper
  • Object
show all
Defined in:
lib/mlb/context_metrics.rb

Overview

Represents sacrifice fly probability for a specific field zone

Instance Attribute Summary collapse

Instance Attribute Details

#probabilityFloat

Returns the probability of a sacrifice fly to this field zone

Examples:

sac_fly.probability #=> 0.25

Returns:

  • (Float)

    probability value between 0 and 1



14
# File 'lib/mlb/context_metrics.rb', line 14

attribute :probability, Shale::Type::Float